mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
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:
commit
6dc6dc7eb7
2 changed files with 4 additions and 4 deletions
|
@ -209,8 +209,8 @@ impl BluetoothManager {
|
||||||
embedder_proxy: EmbedderProxy,
|
embedder_proxy: EmbedderProxy,
|
||||||
) -> BluetoothManager {
|
) -> BluetoothManager {
|
||||||
BluetoothManager {
|
BluetoothManager {
|
||||||
receiver: receiver,
|
receiver,
|
||||||
adapter: adapter,
|
adapter,
|
||||||
address_to_id: HashMap::new(),
|
address_to_id: HashMap::new(),
|
||||||
service_to_device: HashMap::new(),
|
service_to_device: HashMap::new(),
|
||||||
characteristic_to_service: HashMap::new(),
|
characteristic_to_service: HashMap::new(),
|
||||||
|
@ -220,7 +220,7 @@ impl BluetoothManager {
|
||||||
cached_characteristics: HashMap::new(),
|
cached_characteristics: HashMap::new(),
|
||||||
cached_descriptors: HashMap::new(),
|
cached_descriptors: HashMap::new(),
|
||||||
allowed_services: HashMap::new(),
|
allowed_services: HashMap::new(),
|
||||||
embedder_proxy: embedder_proxy,
|
embedder_proxy,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ impl FileManager {
|
||||||
pool_handle: Weak<CoreResourceThreadPool>,
|
pool_handle: Weak<CoreResourceThreadPool>,
|
||||||
) -> FileManager {
|
) -> FileManager {
|
||||||
FileManager {
|
FileManager {
|
||||||
embedder_proxy: embedder_proxy,
|
embedder_proxy,
|
||||||
store: Arc::new(FileManagerStore::new()),
|
store: Arc::new(FileManagerStore::new()),
|
||||||
thread_pool: pool_handle,
|
thread_pool: pool_handle,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue