mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +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 {
|
fn name(option: &Option<String>) -> &str {
|
||||||
match *option {
|
option.as_deref().unwrap_or_default()
|
||||||
Some(ref name) => name,
|
|
||||||
None => "",
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// set39 color scheme from <https://graphviz.org/doc/info/colors.html>
|
/// set39 color scheme from <https://graphviz.org/doc/info/colors.html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user