aboutsummaryrefslogtreecommitdiffstats
path: root/components/bluetooth_traits/scanfilter.rs
diff options
context:
space:
mode:
authorTeymour Aldridge <teymour@reasoning.page>2022-08-04 00:13:36 +0800
committerTeymour Aldridge <teymour@reasoning.page>2022-08-04 00:13:36 +0800
commit3e5cd8815da2ef649658e45f949e29308d1bb853 (patch)
tree9e75f10566e8d589dad7238b235d3619c2c0b9a9 /components/bluetooth_traits/scanfilter.rs
parentc23adde5a33348aa38f7c2ad22bf96d91dcc7b33 (diff)
downloadservo-3e5cd8815da2ef649658e45f949e29308d1bb853.tar.gz
servo-3e5cd8815da2ef649658e45f949e29308d1bb853.zip
Fix some Clippy lints.
Diffstat (limited to 'components/bluetooth_traits/scanfilter.rs')
-rw-r--r--components/bluetooth_traits/scanfilter.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/bluetooth_traits/scanfilter.rs b/components/bluetooth_traits/scanfilter.rs
index a37733bfa4e..29e6667f8f6 100644
--- a/components/bluetooth_traits/scanfilter.rs
+++ b/components/bluetooth_traits/scanfilter.rs
@@ -44,16 +44,16 @@ impl BluetoothScanfilter {
service_data: Option<ServiceData>,
) -> BluetoothScanfilter {
BluetoothScanfilter {
- name: name,
- name_prefix: name_prefix,
+ name,
+ name_prefix,
services: ServiceUUIDSequence::new(services),
manufacturer_data: manufacturer_data,
- service_data: service_data,
+ service_data,
}
}
pub fn get_name(&self) -> Option<&str> {
- self.name.as_ref().map(|s| s.as_str())
+ self.name.as_deref()
}
pub fn get_name_prefix(&self) -> &str {