Skip to content

Commit

Permalink
fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Apr 8, 2024
1 parent 1a2645c commit cc7984c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/server/frontend_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc7984c

Please sign in to comment.