mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -178,7 +178,7 @@ impl Bluetooth {
|
|||
// Step 2.4.
|
||||
for filter in filters {
|
||||
// Step 2.4.1.
|
||||
match canonicalize_filter(&filter) {
|
||||
match canonicalize_filter(filter) {
|
||||
// Step 2.4.2.
|
||||
Ok(f) => uuid_filters.push(f),
|
||||
Err(e) => {
|
||||
|
@ -576,7 +576,7 @@ impl AsyncBluetoothListener for Bluetooth {
|
|||
&self.global(),
|
||||
DOMString::from(device.id.clone()),
|
||||
device.name.map(DOMString::from),
|
||||
&self,
|
||||
self,
|
||||
);
|
||||
device_instance_map.insert(device.id.clone(), Dom::from_ref(&bt_device));
|
||||
|
||||
|
@ -667,7 +667,7 @@ impl PermissionAlgorithm for Bluetooth {
|
|||
|
||||
// Step 6.2.1.
|
||||
for filter in filters {
|
||||
match canonicalize_filter(&filter) {
|
||||
match canonicalize_filter(filter) {
|
||||
Ok(f) => scan_filters.push(f),
|
||||
Err(error) => return promise.reject_error(error),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue