style(clippy): small clippy change
This commit is contained in:
parent
f8a9ad363d
commit
96e40e8887
@ -507,7 +507,7 @@ impl std::ops::Deref for Awards {
|
|||||||
|
|
||||||
impl std::fmt::Display for Awards {
|
impl std::fmt::Display for Awards {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
self.iter().fold(Ok(()), |result, award| result.and_then(|()| writeln!(f, "{award}")))
|
self.iter().try_fold((), |_, award| writeln!(f, "{award}"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user