Skip to content

Commit

Permalink
refactor(lib): fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Aug 15, 2023
1 parent 6bde98a commit 6f9c003
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/demo/device/demo_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ where
mac_address,
state_sender,
connection_status_sender,
futures: PhantomData::default(),
futures: PhantomData,
state: Mutex::new(DeviceState {
feature_flags: DeviceFeatureFlags::all(),
battery: SingleBattery {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/demo/device/demo_device_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where

pub fn new() -> Self {
Self {
futures: PhantomData::default(),
futures: PhantomData,
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Until this is resolved, there's not really a good workaround for having big types
// https://github.com/rust-lang/rust/issues/8995
#![allow(clippy::type_complexity)]
pub mod api;
pub mod demo;
pub mod device_utils;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/q30/device/q30_device_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
Ok(Self {
conneciton_registry: connection_registry,
devices: Mutex::new(WeakValueHashMap::new()),
futures: PhantomData::default(),
futures: PhantomData,
})
}

Expand Down

0 comments on commit 6f9c003

Please sign in to comment.