Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy: Fixes blocks_in_conditions warning #2900

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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