mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
fix clippy lint
This commit is contained in:
parent
1a2645cfbc
commit
cc7984c066
1 changed files with 2 additions and 5 deletions
|
|
@ -242,14 +242,11 @@ pub async fn remove_client(
|
|||
frontend: &mut FrontendListener,
|
||||
client: ClientHandle,
|
||||
) -> Option<ClientHandle> {
|
||||
let Some((client, active)) = server
|
||||
let (client, active) = server
|
||||
.client_manager
|
||||
.borrow_mut()
|
||||
.remove_client(client)
|
||||
.map(|s| (s.client.handle, s.active))
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
.map(|s| (s.client.handle, s.active))?;
|
||||
|
||||
if active {
|
||||
let _ = capture_notify_tx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue