Use a more streamlined version of style-component collection

This commit is contained in:
sharkdp committed 2018-09-12 21:35:23 +02:00
1 parent 7897260bf0
commit dccf8d8221
3 files changed
+16 -17

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ impl FromStr for OutputComponent {
"header" => Ok(OutputComponent::Header),
"numbers" => Ok(OutputComponent::Numbers),
"full" => Ok(OutputComponent::Full),
"plain" | _ => Ok(OutputComponent::Plain),
"plain" => Ok(OutputComponent::Plain),
_ => Err(format!("Unknown style '{}'", s).into()),
}
}
}