mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
chore: satisfy clippy::manual_unwrap_or_default
This commit is contained in:
parent
00a32ca2ad
commit
25bc704e35
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user