From 6f9d5cf44c2eb78dbce401fc29aa85178215d6e1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 16 May 2024 12:11:56 +0200 Subject: [PATCH] Address clippy lint --- src/history/file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/history/file.rs b/src/history/file.rs index 891992c19..ea226f417 100644 --- a/src/history/file.rs +++ b/src/history/file.rs @@ -313,6 +313,7 @@ fn trim_leading_spaces(s: &[u8]) -> (usize, &[u8]) { (count, &s[count..]) } +#[allow(clippy::type_complexity)] fn extract_prefix_and_unescape_yaml(line: &[u8]) -> Option<(Cow<[u8]>, Cow<[u8]>)> { let mut split = line.splitn(2, |c| *c == b':'); let key = split.next().unwrap();