Add and fix some lints
This commit is contained in:
parent
06aefd562b
commit
8942b381f5
3 changed files with 13 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue