diff options
| author | Phil Hansch <dev@phansch.net> | 2020-01-31 07:32:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-31 07:32:53 +0100 |
| commit | 8f457fa4c99c39ec5c2428922d6f7cc3fec84f59 (patch) | |
| tree | c975f96d05a1f3409fea8282c13ee4ee37160a3e /clippy_dev/src | |
| parent | 3f2532b904f2ed38e69073d12a07c6aa32672197 (diff) | |
Mark clippy_project_root as `must_use`
Co-Authored-By: Philipp Krones <hello@philkrones.com>
Diffstat (limited to 'clippy_dev/src')
| -rw-r--r-- | clippy_dev/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index efc1a9675da..c58b80e4318 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() { |
