mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use struct shorthand initialization.
This commit is contained in:
parent
9d1af2ac7b
commit
506032129d
2 changed files with 5 additions and 5 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,9 +86,9 @@ 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