mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
chore: satisfy clippy::manual_unwrap_or_default
This commit is contained in:
1 parent
00a32ca2ad
commit
25bc704e35
1 file changed
+1
-5
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user