aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetooth.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-06-18 13:21:32 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-06-18 13:21:49 +0200
commit7af5a7fd5409ab8db0274eb829136e5953e718ed (patch)
treeee7103d6651e45943609118f93cc8789ebbb4d86 /components/script/dom/bluetooth.rs
parenta5bb55790fe34de6e6dc561314d2a9491972585e (diff)
downloadservo-7af5a7fd5409ab8db0274eb829136e5953e718ed.tar.gz
servo-7af5a7fd5409ab8db0274eb829136e5953e718ed.zip
Untry script
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r--components/script/dom/bluetooth.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs
index 3c3b88a27ac..846b1ff666c 100644
--- a/components/script/dom/bluetooth.rs
+++ b/components/script/dom/bluetooth.rs
@@ -328,7 +328,7 @@ fn canonicalize_filter(filter: &BluetoothLEScanFilterInit) -> Fallible<Bluetooth
for service in services {
// Step 3.2 - 3.3.
- let uuid = try!(BluetoothUUID::service(service.clone())).to_string();
+ let uuid = BluetoothUUID::service(service.clone())?.to_string();
// Step 3.4.
if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) {
@@ -393,7 +393,7 @@ fn canonicalize_filter(filter: &BluetoothLEScanFilterInit) -> Fallible<Bluetooth
// Step 7.3: No need to convert to IDL values since this is only used by native code.
// Step 7.4 - 7.5.
- map.insert(manufacturer_id, try!(canonicalize_bluetooth_data_filter_init(bdfi)));
+ map.insert(manufacturer_id, canonicalize_bluetooth_data_filter_init(bdfi)?);
}
Some(map)
},
@@ -417,7 +417,7 @@ fn canonicalize_filter(filter: &BluetoothLEScanFilterInit) -> Fallible<Bluetooth
};
// Step 9.3 - 9.4.
- let service = try!(BluetoothUUID::service(service_name)).to_string();
+ let service = BluetoothUUID::service(service_name)?.to_string();
// Step 9.5.
if uuid_is_blocklisted(service.as_ref(), Blocklist::All) {
@@ -427,7 +427,7 @@ fn canonicalize_filter(filter: &BluetoothLEScanFilterInit) -> Fallible<Bluetooth
// Step 9.6: No need to convert to IDL values since this is only used by native code.
// Step 9.7 - 9.8.
- map.insert(service, try!(canonicalize_bluetooth_data_filter_init(bdfi)));
+ map.insert(service, canonicalize_bluetooth_data_filter_init(bdfi)?);
}
Some(map)
},