1
0
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:
sharkdp
2018-05-10 12:50:40 +02:00
committed by David Peter
parent 25cee002f9
commit e2ac6de783
3 changed files with 12 additions and 21 deletions

View File

@@ -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
})