1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-18 07:11:04 +02:00

refactor: fix new strict clippy warnings

This commit is contained in:
Jake Stanger 2024-02-01 22:39:43 +00:00
parent d58d8952a8
commit aaef3bf96c
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
8 changed files with 24 additions and 29 deletions

View file

@ -1,6 +1,6 @@
/// It is necessary to store macros in a separate file due to a compilation error.
/// I believe this stems from the feature flags.
/// Related issue: <https://github.com/rust-lang/rust/issues/81066>
//! It is necessary to store macros in a separate file due to a compilation error.
//! I believe this stems from the feature flags.
//! Related issue: <https://github.com/rust-lang/rust/issues/81066>
// --- Data Control Device --- \\

View file

@ -102,7 +102,7 @@ struct BroadcastChannel<T>(broadcast::Sender<T>, Arc<Mutex<broadcast::Receiver<T
impl<T> From<(broadcast::Sender<T>, broadcast::Receiver<T>)> for BroadcastChannel<T> {
fn from(value: (broadcast::Sender<T>, broadcast::Receiver<T>)) -> Self {
BroadcastChannel(value.0, arc_mut!(value.1))
Self(value.0, arc_mut!(value.1))
}
}