1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-05 19:11:42 +00:00

Use a more streamlined version of style-component collection

This commit is contained in:
sharkdp
2018-09-12 21:35:23 +02:00
parent 7897260bf0
commit dccf8d8221
3 changed files with 16 additions and 17 deletions
+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()),
}
}
}