Mark clippy_project_root as must_use
Co-Authored-By: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
3f2532b904
commit
8f457fa4c9
@ -322,6 +322,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the path to the Clippy project directory
|
/// Returns the path to the Clippy project directory
|
||||||
|
#[must_use]
|
||||||
pub fn clippy_project_root() -> PathBuf {
|
pub fn clippy_project_root() -> PathBuf {
|
||||||
let current_dir = std::env::current_dir().unwrap();
|
let current_dir = std::env::current_dir().unwrap();
|
||||||
for path in current_dir.ancestors() {
|
for path in current_dir.ancestors() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user