mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 20:09:59 +03:00
fix clippy lint
This commit is contained in:
@@ -242,14 +242,11 @@ pub async fn remove_client(
|
|||||||
frontend: &mut FrontendListener,
|
frontend: &mut FrontendListener,
|
||||||
client: ClientHandle,
|
client: ClientHandle,
|
||||||
) -> Option<ClientHandle> {
|
) -> Option<ClientHandle> {
|
||||||
let Some((client, active)) = server
|
let (client, active) = server
|
||||||
.client_manager
|
.client_manager
|
||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.remove_client(client)
|
.remove_client(client)
|
||||||
.map(|s| (s.client.handle, s.active))
|
.map(|s| (s.client.handle, s.active))?;
|
||||||
else {
|
|
||||||
return None;
|
|
||||||
};
|
|
||||||
|
|
||||||
if active {
|
if active {
|
||||||
let _ = capture_notify_tx
|
let _ = capture_notify_tx
|
||||||
|
|||||||
Reference in New Issue
Block a user