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. -->
This commit is contained in:
bors-servo 2021-06-25 21:56:22 -04:00 committed by GitHub
commit 6dc6dc7eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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,
}
}

View file

@ -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,
}