1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-05 21:02:27 +01: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

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()),
}
}
}