fix clippy lint

This commit is contained in:
Ferdinand Schober
2024-04-08 21:13:54 +02:00
parent 1a2645cfbc
commit cc7984c066

View File

@@ -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