mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: fix some pedantic clippy warnings
This commit is contained in:
parent
4d30819ff6
commit
04f45ccae1
12 changed files with 43 additions and 46 deletions
|
@ -54,6 +54,7 @@ impl Client {
|
|||
vec![]
|
||||
}
|
||||
});
|
||||
|
||||
// Acquire the lock of current_player before players to avoid deadlock.
|
||||
// There are places where we lock on current_player and players, but we always lock on current_player first.
|
||||
// This is because we almost never need to lock on players without locking on current_player.
|
||||
|
|
|
@ -56,7 +56,7 @@ impl Client {
|
|||
T::EVENT_TYPE,
|
||||
Box::new(move |event| {
|
||||
let event = T::from_event(event).expect("event type mismatch");
|
||||
f(event)
|
||||
f(event);
|
||||
}),
|
||||
)
|
||||
.await
|
||||
|
|
|
@ -146,7 +146,7 @@ where
|
|||
ToplevelHandle {
|
||||
handle: handle.clone(),
|
||||
},
|
||||
)
|
||||
);
|
||||
}
|
||||
Event::Done if !lock!(data.inner).closed => {
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue