Skip to content

Commit

Permalink
chore: satisfy clippy::manual_unwrap_or_default
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler authored and teoxoy committed Jul 5, 2024
1 parent 00a32ca commit 25bc704
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions naga/src/back/dot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 25bc704

Please sign in to comment.