Apply more lints

This commit is contained in:
Andras Schmelczer 2024-12-18 22:14:09 +00:00
commit 1e1dd7b877
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -23,12 +23,10 @@ where
}
pub fn original_text_length(&self) -> usize {
self.tokens().iter().map(|t| t.get_original_length()).sum()
self.tokens().iter().map(Token::get_original_length).sum()
}
pub fn get_original_text(self) -> String {
self.tokens().iter().map(|t| t.original()).collect()
}
pub fn get_original_text(self) -> String { self.tokens().iter().map(Token::original).collect() }
/// Extends the operation with another operation if returning the new
/// operation. Only operations of the same type can be used to extend.