Mark clippy_project_root as must_use
Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
3f2532b904
commit
8f457fa4c9
1 changed files with 1 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue