From 506032129d15b7a114cad0e0e49bb4705b667365 Mon Sep 17 00:00:00 2001 From: teymour-aldridge Date: Thu, 24 Jun 2021 16:14:22 +0100 Subject: [PATCH 1/2] Use struct shorthand initialization. --- components/bluetooth/lib.rs | 6 +++--- components/net/filemanager_thread.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/bluetooth/lib.rs b/components/bluetooth/lib.rs index f882d640679..cb6a2587c67 100644 --- a/components/bluetooth/lib.rs +++ b/components/bluetooth/lib.rs @@ -209,8 +209,8 @@ impl BluetoothManager { embedder_proxy: EmbedderProxy, ) -> BluetoothManager { BluetoothManager { - receiver: receiver, - adapter: adapter, + receiver, + adapter, address_to_id: HashMap::new(), service_to_device: HashMap::new(), characteristic_to_service: HashMap::new(), @@ -220,7 +220,7 @@ impl BluetoothManager { cached_characteristics: HashMap::new(), cached_descriptors: HashMap::new(), allowed_services: HashMap::new(), - embedder_proxy: embedder_proxy, + embedder_proxy, } } diff --git a/components/net/filemanager_thread.rs b/components/net/filemanager_thread.rs index 14321311e59..36dad4f9ba6 100644 --- a/components/net/filemanager_thread.rs +++ b/components/net/filemanager_thread.rs @@ -86,9 +86,9 @@ impl FileManager { pool_handle: Weak, ) -> FileManager { FileManager { - embedder_proxy: embedder_proxy, + embedder_proxy, store: Arc::new(FileManagerStore::new()), - thread_pool: pool_handle, + thread_pool: pool_handle } } From e962a7c9c70a0d3ed4af2a757a453cc987ab097e Mon Sep 17 00:00:00 2001 From: teymour-aldridge Date: Fri, 25 Jun 2021 13:16:08 +0100 Subject: [PATCH 2/2] test tidy --- components/net/filemanager_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/filemanager_thread.rs b/components/net/filemanager_thread.rs index 36dad4f9ba6..6d9da285154 100644 --- a/components/net/filemanager_thread.rs +++ b/components/net/filemanager_thread.rs @@ -88,7 +88,7 @@ impl FileManager { FileManager { embedder_proxy, store: Arc::new(FileManagerStore::new()), - thread_pool: pool_handle + thread_pool: pool_handle, } }