mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-14 17:22:25 +01:00
Fix clippy warnings
This commit is contained in:
@@ -92,7 +92,7 @@ impl<'a> Printer<'a> {
|
||||
decorations
|
||||
.into_iter()
|
||||
.filter_map(|dec| if grid_requested {
|
||||
Some(dec.unwrap_or(" ".to_owned()))
|
||||
Some(dec.unwrap_or_else(|| " ".to_owned()))
|
||||
} else {
|
||||
dec
|
||||
})
|
||||
|
Reference in New Issue
Block a user