1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 11:46:50 +00:00

refactor: use if/else expression

This commit is contained in:
Paul-Christian Volkmer 2024-12-14 14:05:52 +01:00
parent e07ee7f593
commit e45661c84c

View File

@ -54,9 +54,10 @@ impl Listable for PropertyCatalogue {
fn to_listed_string(&self) -> String {
format!(
"Merkmalskatalog ({}) '{}' in Revision '{}'",
match self.is_system_library_content() {
true => style("S").yellow(),
_ => style("u"),
if self.is_system_library_content() {
style("S").yellow()
} else {
style("u")
},
style(&self.name).yellow(),
style(&self.revision).yellow()