Skip to content

Commit 8f457fa

Browse files
phanschflip1995
andauthored
Mark clippy_project_root as must_use
Co-Authored-By: Philipp Krones <[email protected]>
1 parent 3f2532b commit 8f457fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_dev/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ where
322322
}
323323

324324
/// Returns the path to the Clippy project directory
325+
#[must_use]
325326
pub fn clippy_project_root() -> PathBuf {
326327
let current_dir = std::env::current_dir().unwrap();
327328
for path in current_dir.ancestors() {

0 commit comments

Comments
 (0)