mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +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,
|
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);
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue