Skip to content

Commit

Permalink
clippy: Fixes blocks_in_conditions warning (#2900)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Sep 11, 2024
1 parent 383b49f commit 1184bc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/cluster_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1436,9 +1436,10 @@ pub fn process_ping(
rpc_client: &RpcClient,
) -> ProcessResult {
let (signal_sender, signal_receiver) = unbounded();
match ctrlc::try_set_handler(move || {
let handler = move || {
let _ = signal_sender.send(());
}) {
};
match ctrlc::try_set_handler(handler) {
// It's possible to set the ctrl-c handler more than once in testing
// situations, so let that case through
Err(ctrlc::Error::MultipleHandlers) => {}
Expand Down

0 comments on commit 1184bc8

Please sign in to comment.