Mark clippy_project_root as must_use

Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
Phil Hansch 2020-01-31 07:32:53 +01:00 committed by GitHub
parent 3f2532b904
commit 8f457fa4c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {