Satisfy clippy

This commit is contained in:
Joscha 2023-01-05 14:21:50 +01:00
parent 5acf49d018
commit 20186bda5c
2 changed files with 6 additions and 4 deletions

View file

@ -265,13 +265,13 @@ impl Rooms {
match (status, unseen) {
(None, None) => Styled::default(),
(None, Some(u)) => Styled::new_plain(" (")
.then(&u, unseen_style)
.then(u, unseen_style)
.then_plain(")"),
(Some(s), None) => Styled::new_plain(" (").then_plain(&s).then_plain(")"),
(Some(s), None) => Styled::new_plain(" (").then_plain(s).then_plain(")"),
(Some(s), Some(u)) => Styled::new_plain(" (")
.then_plain(&s)
.then_plain(s)
.then_plain(", ")
.then(&u, unseen_style)
.then(u, unseen_style)
.then_plain(")"),
}
}