From 506032129d15b7a114cad0e0e49bb4705b667365 Mon Sep 17 00:00:00 2001 From: teymour-aldridge Date: Thu, 24 Jun 2021 16:14:22 +0100 Subject: [PATCH] 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 } }