Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 4971b90

Browse files
authored
Merge pull request #1525 from Xanewok/cargoless-clippy
Don't forcibly set CARGO_MANIFEST_DIR as a workaround for Clippy
2 parents bdfcef7 + 4acda39 commit 4971b90

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

rls/src/build/rustc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ pub(crate) fn rustc(
7878

7979
config.clippy_preference
8080
};
81-
// Required for Clippy not to crash when running outside Cargo?
82-
local_envs.entry("CARGO_MANIFEST_DIR".into()).or_insert_with(|| Some(build_dir.into()));
8381

8482
let (guard, _) = env_lock.lock();
8583
let restore_env = Environment::push_with_lock(&local_envs, cwd, guard);

0 commit comments

Comments
 (0)