Skip to content

Commit

Permalink
appease ci
Browse files Browse the repository at this point in the history
  • Loading branch information
J-ZhengLi committed Sep 23, 2024
1 parent 4751eda commit 26e7329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/custom_instructions/buildtools.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::{Path, PathBuf};
use anyhow::Result;
use cc::windows_registry;
use crate::core::directories::RimDir;
use crate::core::install::InstallConfiguration;

pub(super) fn install(path: &Path, config: &InstallConfiguration) -> Result<Vec<PathBuf>> {
Expand Down
6 changes: 3 additions & 3 deletions src/core/os/windows.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use std::path::PathBuf;
use std::process::Command;

use crate::core::directories::RimDir;
use crate::core::install::{EnvConfig, InstallConfiguration};
use crate::core::uninstall::{UninstallConfiguration, Uninstallation};
use crate::manifest::ToolsetManifest;
use crate::toolset_manifest::ToolsetManifest;
use anyhow::Result;

pub(crate) use rustup::*;
Expand All @@ -24,8 +25,7 @@ impl EnvConfig for InstallConfiguration {
impl Uninstallation for UninstallConfiguration {
fn remove_rustup_env_vars(&self) -> Result<()> {
// Remove the `<InstallDir>/.cargo/bin` which is added by rustup
let mut cargo_bin_dir = self.cargo_home();
cargo_bin_dir.push("bin");
let cargo_bin_dir = self.cargo_home().join("bin");
remove_from_path(&cargo_bin_dir)?;

for var_to_remove in crate::core::ALL_VARS {
Expand Down

0 comments on commit 26e7329

Please sign in to comment.