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

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