chore: satisfy clippy::manual_unwrap_or_default

This commit is contained in:
Erich Gubler authored and Teodor Tanasoaia committed 2024-07-05 10:35:37 +02:00
1 parent 00a32ca2ad
commit 25bc704e35
1 file changed
+1 -5
+1 -5
View File
@@ -377,12 +377,8 @@ impl StatementGraph {
}
}
#[allow(clippy::manual_unwrap_or)]
fn name(option: &Option<String>) -> &str {
match *option {
Some(ref name) => name,
None => "",
}
option.as_deref().unwrap_or_default()
}
/// set39 color scheme from <https://graphviz.org/doc/info/colors.html>