mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
Silence some clippies
This commit is contained in:
parent
6117b5071c
commit
9e406e4fbc
2 changed files with 2 additions and 1 deletions
|
@ -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<c_int> {
|
||||
let mut opts = Options::default();
|
||||
custom_opts(&mut opts);
|
||||
|
|
|
@ -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> {
|
||||
let mut res = vec![];
|
||||
if value.is_empty() {
|
||||
|
|
Loading…
Reference in a new issue