chore: satisfy clippy::manual_unwrap_or_default

This commit is contained in:
Erich Gubler 2024-07-04 16:48:21 -06:00 committed by Teodor Tanasoaia
parent 00a32ca2ad
commit 25bc704e35

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>