fix(clippy): clippy 1.83 lints (#12150)

This commit is contained in:
RoloEdits 2024-12-02 06:23:32 -08:00 committed by GitHub
parent e1d1a5c5a1
commit 5ba97ba41e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 37 additions and 45 deletions

View file

@ -39,7 +39,7 @@ impl<'a, 'b> WordWrapper<'a, 'b> {
}
}
impl<'a, 'b> LineComposer<'a> for WordWrapper<'a, 'b> {
impl<'a> LineComposer<'a> for WordWrapper<'a, '_> {
fn next_line(&mut self) -> Option<(&[StyledGrapheme<'a>], u16)> {
if self.max_line_width == 0 {
return None;
@ -152,7 +152,7 @@ impl<'a, 'b> LineTruncator<'a, 'b> {
}
}
impl<'a, 'b> LineComposer<'a> for LineTruncator<'a, 'b> {
impl<'a> LineComposer<'a> for LineTruncator<'a, '_> {
fn next_line(&mut self) -> Option<(&[StyledGrapheme<'a>], u16)> {
if self.max_line_width == 0 {
return None;