Skip to content

Commit

Permalink
Merge pull request #2820 from pre-commit/clear-rust-registry-cache
Browse files Browse the repository at this point in the history
don't set CARGO_HOME in rust
  • Loading branch information
asottile committed Mar 17, 2023
2 parents d5f919e + a412e54 commit fdb9ede
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pre_commit/languages/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def _rust_toolchain(language_version: str) -> str:

def get_env_patch(target_dir: str, version: str) -> PatchesT:
return (
('CARGO_HOME', target_dir),
('PATH', (os.path.join(target_dir, 'bin'), os.pathsep, Var('PATH'))),
# Only set RUSTUP_TOOLCHAIN if we don't want use the system's default
# toolchain
Expand Down

0 comments on commit fdb9ede

Please sign in to comment.