Skip to content

Commit 810019b

Browse files
authored
Merge pull request #2594 from kinnison/cleanups-from-before
Clean up overcoupling
2 parents a31ac61 + 13f0b8a commit 810019b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/cli/self_update.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ pub fn install(
338338

339339
let install_res: Result<utils::ExitCode> = (|| {
340340
install_bins()?;
341+
342+
#[cfg(unix)]
341343
do_write_env_files()?;
344+
342345
if !opts.no_modify_path {
343346
do_add_to_path()?;
344347
}

src/cli/self_update/windows.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ pub fn do_add_to_path() -> Result<()> {
144144
_apply_new_path(new_path)
145145
}
146146

147-
// Nothing to do for Windows for now
148-
pub fn do_write_env_files() -> Result<()> {
149-
Ok(())
150-
}
151-
152147
fn _apply_new_path(new_path: Option<String>) -> Result<()> {
153148
use std::ptr;
154149
use winapi::shared::minwindef::*;

0 commit comments

Comments
 (0)