From 8f457fa4c99c39ec5c2428922d6f7cc3fec84f59 Mon Sep 17 00:00:00 2001 From: Phil Hansch Date: Fri, 31 Jan 2020 07:32:53 +0100 Subject: [PATCH] Mark clippy_project_root as `must_use` Co-Authored-By: Philipp Krones --- clippy_dev/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index efc1a9675daa..c58b80e4318e 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -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() {