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

Commit

Permalink
Merge pull request #1525 from Xanewok/cargoless-clippy
Browse files Browse the repository at this point in the history
Don't forcibly set CARGO_MANIFEST_DIR as a workaround for Clippy
  • Loading branch information
Xanewok committed Aug 6, 2019
2 parents bdfcef7 + 4acda39 commit 4971b90
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ pub(crate) fn rustc(

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

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

0 comments on commit 4971b90

Please sign in to comment.