mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-28 08:05:55 +00:00
Fix clippy warnings
This commit is contained in:
1 parent
25cee002f9
commit
e2ac6de783
3 files changed
+12
-21
No files matched your search
+1
-1
@@ -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