Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8f457fa

Browse files
phanschflip1995
andauthored
Mark clippy_project_root as must_use
Co-Authored-By: Philipp Krones <hello@philkrones.com>
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

Lines changed: 1 addition & 0 deletions
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)