refactor: remove unnecessary allow(clippy::indexing_slicing)

clippy::indexing_slicing is already allowed in test builds.
This commit is contained in:
link2xt
2024-11-18 11:16:35 +00:00
committed by l
parent 514f0296c0
commit 06eea7ebe8
11 changed files with 0 additions and 19 deletions

View File

@@ -2274,7 +2274,6 @@ mod tests {
let msg = message.as_string();
let header_end = msg.find("Hi").unwrap();
#[allow(clippy::indexing_slicing)]
let headers = msg[0..header_end].trim();
assert!(!headers.lines().any(|l| l.trim().is_empty()));