mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Refactored a couple of files from codeStyle to code_style.
This commit is contained in:
parent
dd4907c985
commit
55ff161ed5
3 changed files with 10 additions and 10 deletions
|
@ -13,19 +13,19 @@ use dom::bindings::reflector::{Reflector, reflect_dom_object};
|
|||
pub struct BluetoothAdvertisingData {
|
||||
reflector_: Reflector,
|
||||
appearance: Option<u16>,
|
||||
txPower: Option<i8>,
|
||||
tx_power: Option<i8>,
|
||||
rssi: Option<i8>,
|
||||
}
|
||||
|
||||
impl BluetoothAdvertisingData {
|
||||
pub fn new_inherited(appearance: Option<u16>,
|
||||
txPower: Option<i8>,
|
||||
tx_power: Option<i8>,
|
||||
rssi: Option<i8>)
|
||||
-> BluetoothAdvertisingData {
|
||||
BluetoothAdvertisingData {
|
||||
reflector_: Reflector::new(),
|
||||
appearance: appearance,
|
||||
txPower: txPower,
|
||||
tx_power: tx_power,
|
||||
rssi: rssi,
|
||||
}
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ impl BluetoothAdvertisingDataMethods for BluetoothAdvertisingData {
|
|||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-txpower
|
||||
fn GetTxPower(&self) -> Option<i8> {
|
||||
self.txPower
|
||||
self.tx_power
|
||||
}
|
||||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-rssi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue