Skip to content

Commit 8173ba2

Browse files
committed
fix: satisfy clippy question-mark lint
1 parent 18ba7f4 commit 8173ba2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/cli/context.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ fn find_project_root(start: &Path) -> Option<PathBuf> {
1717
if candidate.is_dir() {
1818
return Some(candidate);
1919
}
20-
match current.parent() {
21-
Some(parent) => current = parent,
22-
None => return None,
23-
}
20+
current = current.parent()?;
2421
}
2522
}
2623

0 commit comments

Comments
 (0)