mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-16 23:14:04 +00:00
Address clippy lint
This commit is contained in:
parent
b82170aded
commit
6f9d5cf44c
1 changed files with 1 additions and 0 deletions
|
@ -313,6 +313,7 @@ fn trim_leading_spaces(s: &[u8]) -> (usize, &[u8]) {
|
||||||
(count, &s[count..])
|
(count, &s[count..])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
fn extract_prefix_and_unescape_yaml(line: &[u8]) -> Option<(Cow<[u8]>, Cow<[u8]>)> {
|
fn extract_prefix_and_unescape_yaml(line: &[u8]) -> Option<(Cow<[u8]>, Cow<[u8]>)> {
|
||||||
let mut split = line.splitn(2, |c| *c == b':');
|
let mut split = line.splitn(2, |c| *c == b':');
|
||||||
let key = split.next().unwrap();
|
let key = split.next().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue