Add and fix some lints

This commit is contained in:
Joscha 2022-12-11 20:44:06 +01:00
parent 06aefd562b
commit 8942b381f5
3 changed files with 13 additions and 2 deletions

View file

@ -34,7 +34,7 @@ impl Styled {
self.then(text, ContentStyle::default())
}
pub fn and_then(mut self, mut other: Styled) -> Self {
pub fn and_then(mut self, mut other: Self) -> Self {
let delta = self.text.len();
for (_, until) in &mut other.styles {
*until += delta;