Skip to content

Commit

Permalink
Mark clippy_project_root as must_use
Browse files Browse the repository at this point in the history
Co-Authored-By: Philipp Krones <[email protected]>
  • Loading branch information
phansch and flip1995 authored Jan 31, 2020
1 parent 3f2532b commit 8f457fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clippy_dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ where
}

/// Returns the path to the Clippy project directory
#[must_use]
pub fn clippy_project_root() -> PathBuf {
let current_dir = std::env::current_dir().unwrap();
for path in current_dir.ancestors() {
Expand Down

0 comments on commit 8f457fa

Please sign in to comment.