From 9e406e4fbc3ad825da34e32da62359f05be45af2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 27 May 2024 11:07:02 -0700 Subject: [PATCH] Silence some clippies --- src/builtins/path.rs | 2 +- src/key.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/builtins/path.rs b/src/builtins/path.rs index 5e1417235..efec75ad4 100644 --- a/src/builtins/path.rs +++ b/src/builtins/path.rs @@ -376,7 +376,7 @@ fn path_transform( streams: &mut IoStreams, args: &mut [&wstr], func: impl Fn(&wstr) -> WString, - custom_opts: impl Fn(&mut Options) -> (), + custom_opts: impl Fn(&mut Options), ) -> Option { let mut opts = Options::default(); custom_opts(&mut opts); diff --git a/src/key.rs b/src/key.rs index cfb580ef1..fb5c499a9 100644 --- a/src/key.rs +++ b/src/key.rs @@ -230,6 +230,7 @@ fn escape_nonprintables(key_name: &wstr) -> WString { ) } +#[allow(clippy::nonminimal_bool)] pub(crate) fn parse_keys(value: &wstr) -> Result, WString> { let mut res = vec![]; if value.is_empty() {