Make clippy happy

This commit is contained in:
Armin Ronacher 2024-07-02 16:32:21 +02:00
parent 69be03c583
commit e4edc6ff5a
2 changed files with 1 additions and 6 deletions

View file

@ -318,11 +318,7 @@ mod bytes_support {
}
fn ends_with_newline(&self) -> bool {
if let Some(b'\r') | Some(b'\n') = self.last_byte() {
true
} else {
false
}
matches!(self.last_byte(), Some(b'\r') | Some(b'\n'))
}
fn len(&self) -> usize {

View file

@ -1,4 +1,3 @@
#![cfg(feature = "inline")]
use std::borrow::Cow;
use std::fmt;