We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc88875 commit 40735fbCopy full SHA for 40735fb
src/native/windows.rs
@@ -1,6 +1,6 @@
1
use super::CurrentUser;
2
use crate::cmd::KillFailedError;
3
-use failure::{bail, Error};
+use failure::Error;
4
use std::fs::File;
5
use std::path::Path;
6
use windows_sys::Win32::Foundation::CloseHandle;
src/toolchain.rs
@@ -541,7 +541,7 @@ pub(crate) fn list_installed_toolchains(rustup_home: &Path) -> Result<Vec<Toolch
541
#[cfg(feature = "unstable-toolchain-ci")]
542
{
543
let (sha, alt) = if name.ends_with("-alt") {
544
- ((&name[..name.len() - 4]).to_string(), true)
+ ((name[..name.len() - 4]).to_string(), true)
545
} else {
546
(name, false)
547
};
0 commit comments