diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-18 23:24:15 +0900 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-09-19 17:40:47 -0400 |
commit | c37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch) | |
tree | 1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/bluetoothcharacteristicproperties.rs | |
parent | 2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff) | |
download | servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip |
Format script component
Diffstat (limited to 'components/script/dom/bluetoothcharacteristicproperties.rs')
-rw-r--r-- | components/script/dom/bluetoothcharacteristicproperties.rs | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/components/script/dom/bluetoothcharacteristicproperties.rs b/components/script/dom/bluetoothcharacteristicproperties.rs index 4a0b6029224..900ec257c7d 100644 --- a/components/script/dom/bluetoothcharacteristicproperties.rs +++ b/components/script/dom/bluetoothcharacteristicproperties.rs @@ -4,14 +4,14 @@ use dom::bindings::codegen::Bindings::BluetoothCharacteristicPropertiesBinding; use dom::bindings::codegen::Bindings::BluetoothCharacteristicPropertiesBinding:: - BluetoothCharacteristicPropertiesMethods; +BluetoothCharacteristicPropertiesMethods; use dom::bindings::reflector::{Reflector, reflect_dom_object}; use dom::bindings::root::DomRoot; use dom::globalscope::GlobalScope; use dom_struct::dom_struct; // https://webbluetoothcg.github.io/web-bluetooth/#characteristicproperties - #[dom_struct] +#[dom_struct] pub struct BluetoothCharacteristicProperties { reflector_: Reflector, broadcast: bool, @@ -26,16 +26,17 @@ pub struct BluetoothCharacteristicProperties { } impl BluetoothCharacteristicProperties { - pub fn new_inherited(broadcast: bool, - read: bool, - write_without_response: bool, - write: bool, - notify: bool, - indicate: bool, - authenticated_signed_writes: bool, - reliable_write: bool, - writable_auxiliaries: bool) - -> BluetoothCharacteristicProperties { + pub fn new_inherited( + broadcast: bool, + read: bool, + write_without_response: bool, + write: bool, + notify: bool, + indicate: bool, + authenticated_signed_writes: bool, + reliable_write: bool, + writable_auxiliaries: bool, + ) -> BluetoothCharacteristicProperties { BluetoothCharacteristicProperties { reflector_: Reflector::new(), broadcast: broadcast, @@ -50,17 +51,18 @@ impl BluetoothCharacteristicProperties { } } - pub fn new(global: &GlobalScope, - broadcast: bool, - read: bool, - writeWithoutResponse: bool, - write: bool, - notify: bool, - indicate: bool, - authenticatedSignedWrites: bool, - reliableWrite: bool, - writableAuxiliaries: bool) - -> DomRoot<BluetoothCharacteristicProperties> { + pub fn new( + global: &GlobalScope, + broadcast: bool, + read: bool, + writeWithoutResponse: bool, + write: bool, + notify: bool, + indicate: bool, + authenticatedSignedWrites: bool, + reliableWrite: bool, + writableAuxiliaries: bool, + ) -> DomRoot<BluetoothCharacteristicProperties> { reflect_dom_object( Box::new(BluetoothCharacteristicProperties::new_inherited( broadcast, @@ -71,10 +73,10 @@ impl BluetoothCharacteristicProperties { indicate, authenticatedSignedWrites, reliableWrite, - writableAuxiliaries + writableAuxiliaries, )), global, - BluetoothCharacteristicPropertiesBinding::Wrap + BluetoothCharacteristicPropertiesBinding::Wrap, ) } } |