mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 02:47:45 +03:00
fix(lints): clippy 1.84
This commit is contained in:
parent
168b11e091
commit
c1d382a532
15 changed files with 34 additions and 42 deletions
|
@ -43,7 +43,7 @@ impl<'a> RopeSliceExt<'a> for RopeSlice<'a> {
|
|||
return false;
|
||||
}
|
||||
self.get_byte_slice(len - text.len()..)
|
||||
.map_or(false, |end| end == text)
|
||||
.is_some_and(|end| end == text)
|
||||
}
|
||||
|
||||
fn starts_with(self, text: &str) -> bool {
|
||||
|
@ -52,7 +52,7 @@ impl<'a> RopeSliceExt<'a> for RopeSlice<'a> {
|
|||
return false;
|
||||
}
|
||||
self.get_byte_slice(..text.len())
|
||||
.map_or(false, |start| start == text)
|
||||
.is_some_and(|start| start == text)
|
||||
}
|
||||
|
||||
fn regex_input(self) -> RegexInput<RopeyCursor<'a>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue