diff options
author | bors-servo <servo-ops@mozilla.com> | 2021-06-25 21:56:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 21:56:22 -0400 |
commit | 6dc6dc7eb73bff037816555d7bbabe1413cb4970 (patch) | |
tree | 629386744f4a9867019f434ee6e78d6a3783edb6 | |
parent | 2959badd9755dc1d7ac08f9aff3bdd50520cff9b (diff) | |
parent | e962a7c9c70a0d3ed4af2a757a453cc987ab097e (diff) | |
download | servo-6dc6dc7eb73bff037816555d7bbabe1413cb4970.tar.gz servo-6dc6dc7eb73bff037816555d7bbabe1413cb4970.zip |
Auto merge of #28528 - teymour-aldridge:shorthand, r=jdm
Use struct shorthand initialization.
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they don't really change any logic
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
-rw-r--r-- | components/bluetooth/lib.rs | 6 | ||||
-rw-r--r-- | components/net/filemanager_thread.rs | 2 |
2 files changed, 4 insertions, 4 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..6d9da285154 100644 --- a/components/net/filemanager_thread.rs +++ b/components/net/filemanager_thread.rs @@ -86,7 +86,7 @@ impl FileManager { pool_handle: Weak<CoreResourceThreadPool>, ) -> FileManager { FileManager { - embedder_proxy: embedder_proxy, + embedder_proxy, store: Arc::new(FileManagerStore::new()), thread_pool: pool_handle, } |