Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Jul 2, 2024
1 parent 69be03c commit e4edc6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions src/text/abstraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/text/inline.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![cfg(feature = "inline")]
use std::borrow::Cow;
use std::fmt;

Expand Down

0 comments on commit e4edc6f

Please sign in to comment.