Skip to content

Commit

Permalink
clippy: Use if-let where suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Nov 13, 2024
1 parent 5ce2d74 commit 6b2c990
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,9 @@ impl Context {
self.error_handler
.set_path(self.path.clone().unwrap_or_default());

match &self.path {
Some(p) => {
self.included.insert(p.clone());
}
None => {}
};
if let Some(p) = &self.path {
self.included.insert(p.clone());
}
}

/// Add an error to the context
Expand Down

0 comments on commit 6b2c990

Please sign in to comment.