Skip to content

Commit fdb9ede

Browse files
authored
Merge pull request #2820 from pre-commit/clear-rust-registry-cache
don't set CARGO_HOME in rust
2 parents d5f919e + a412e54 commit fdb9ede

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pre_commit/languages/rust.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def _rust_toolchain(language_version: str) -> str:
5050

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

0 commit comments

Comments
 (0)