From 9d7c354f2dfc695a383f18dd7a2fb4116458b49a Mon Sep 17 00:00:00 2001 From: taks <857tn859@gmail.com> Date: Tue, 14 Nov 2023 18:07:04 +0900 Subject: [PATCH] Fix fmt --- src/ble_device.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ble_device.rs b/src/ble_device.rs index 6171366..9446a81 100644 --- a/src/ble_device.rs +++ b/src/ble_device.rs @@ -192,14 +192,12 @@ impl BLEDevice { } /// Set the own address type. - pub fn set_own_addr_type(&mut self, own_addr_type: OwnAddrType) - { + pub fn set_own_addr_type(&mut self, own_addr_type: OwnAddrType) { self._set_own_addr_type(own_addr_type, false); } /// Set the own address type to non-resolvable random address. - pub fn set_own_addr_type_to_non_resolvable_random(&mut self) - { + pub fn set_own_addr_type_to_non_resolvable_random(&mut self) { self._set_own_addr_type(OwnAddrType::Random, true); } @@ -229,9 +227,7 @@ impl BLEDevice { /// Set the own address to be used when the address type is random. pub fn set_rnd_addr(&mut self, mut addr: [u8; 6]) -> Result<(), BLEReturnCode> { addr.reverse(); - unsafe { - ble!(esp_idf_sys::ble_hs_id_set_rnd(addr.as_ptr())) - } + unsafe { ble!(esp_idf_sys::ble_hs_id_set_rnd(addr.as_ptr())) } } #[allow(temporary_cstring_as_ptr)]