Mark clippy_project_root as must_use
Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user