Skip to content

Commit 6b2c990

Browse files
committed
clippy: Use if-let where suggested
1 parent 5ce2d74 commit 6b2c990

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/context.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,9 @@ impl Context {
132132
self.error_handler
133133
.set_path(self.path.clone().unwrap_or_default());
134134

135-
match &self.path {
136-
Some(p) => {
137-
self.included.insert(p.clone());
138-
}
139-
None => {}
140-
};
135+
if let Some(p) = &self.path {
136+
self.included.insert(p.clone());
137+
}
141138
}
142139

143140
/// Add an error to the context

0 commit comments

Comments
 (0)