Fix clippy warnings

This commit is contained in:
sharkdp authored and David Peter committed 2018-05-10 13:15:59 +02:00
1 parent 25cee002f9
commit e2ac6de783
3 files changed
+12 -21

No files matched your search

+1 -1
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
})