Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warning unwrap_or_default #316

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

patowen
Copy link
Collaborator

@patowen patowen commented Oct 17, 2023

warning: use of `or_insert_with` to construct default value
  --> common\src\graph_entities.rs:23:40
   |
23 |         let vec = self.map.entry(node).or_insert_with(Vec::new);
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
   = note: `#[warn(clippy::unwrap_or_default)]` on by default

@patowen patowen requested a review from Ralith October 17, 2023 02:18
@Ralith Ralith merged commit d77ba8e into Ralith:master Oct 17, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants