Make clippy happy
This commit is contained in:
parent
69be03c583
commit
e4edc6ff5a
2 changed files with 1 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#![cfg(feature = "inline")]
|
||||
use std::borrow::Cow;
|
||||
use std::fmt;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue