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