Skip to content

Commit b54f13d

Browse files
committed
Make clippy happy
1 parent 3602744 commit b54f13d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@ pub fn truncate_str<'a>(s: &'a str, width: usize, tail: &str) -> Cow<'a, str> {
778778
}
779779
}
780780
(s, true) => {
781-
if rv.is_some() {
782-
rv.as_mut().unwrap().push_str(s);
781+
if let Some(ref mut rv) = rv {
782+
rv.push_str(s);
783783
}
784784
}
785785
}

0 commit comments

Comments
 (0)