Silence some clippies

This commit is contained in:
ridiculousfish 2024-05-27 11:07:02 -07:00
parent 6117b5071c
commit 9e406e4fbc
2 changed files with 2 additions and 1 deletions

View file

@ -376,7 +376,7 @@ fn path_transform(
streams: &mut IoStreams, streams: &mut IoStreams,
args: &mut [&wstr], args: &mut [&wstr],
func: impl Fn(&wstr) -> WString, func: impl Fn(&wstr) -> WString,
custom_opts: impl Fn(&mut Options) -> (), custom_opts: impl Fn(&mut Options),
) -> Option<c_int> { ) -> Option<c_int> {
let mut opts = Options::default(); let mut opts = Options::default();
custom_opts(&mut opts); custom_opts(&mut opts);

View file

@ -230,6 +230,7 @@ fn escape_nonprintables(key_name: &wstr) -> WString {
) )
} }
#[allow(clippy::nonminimal_bool)]
pub(crate) fn parse_keys(value: &wstr) -> Result<Vec<Key>, WString> { pub(crate) fn parse_keys(value: &wstr) -> Result<Vec<Key>, WString> {
let mut res = vec![]; let mut res = vec![];
if value.is_empty() { if value.is_empty() {