mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-21 14:29:14 +00:00
style(clippy): small clippy change
This commit is contained in:
parent
f8a9ad363d
commit
96e40e8887
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ impl std::ops::Deref for Awards {
|
|||
|
||||
impl std::fmt::Display for Awards {
|
||||
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…
Add table
Reference in a new issue