mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Silence some clippies
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user