diff options
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r-- | components/script/dom/bluetoothremotegattdescriptor.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs index 03ae0aa5651..94023d6ffa0 100644 --- a/components/script/dom/bluetoothremotegattdescriptor.rs +++ b/components/script/dom/bluetoothremotegattdescriptor.rs @@ -52,11 +52,13 @@ impl BluetoothRemoteGATTDescriptor { uuid: DOMString, instanceID: String) -> DomRoot<BluetoothRemoteGATTDescriptor>{ - reflect_dom_object(box BluetoothRemoteGATTDescriptor::new_inherited(characteristic, - uuid, - instanceID), - global, - BluetoothRemoteGATTDescriptorBinding::Wrap) + reflect_dom_object( + Box::new(BluetoothRemoteGATTDescriptor::new_inherited( + characteristic, uuid, instanceID + )), + global, + BluetoothRemoteGATTDescriptorBinding::Wrap + ) } fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest> { |