Skip to content

Commit 40735fb

Browse files
committed
Fix clippy
1 parent dc88875 commit 40735fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/native/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::CurrentUser;
22
use crate::cmd::KillFailedError;
3-
use failure::{bail, Error};
3+
use failure::Error;
44
use std::fs::File;
55
use std::path::Path;
66
use windows_sys::Win32::Foundation::CloseHandle;

src/toolchain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ pub(crate) fn list_installed_toolchains(rustup_home: &Path) -> Result<Vec<Toolch
541541
#[cfg(feature = "unstable-toolchain-ci")]
542542
{
543543
let (sha, alt) = if name.ends_with("-alt") {
544-
((&name[..name.len() - 4]).to_string(), true)
544+
((name[..name.len() - 4]).to_string(), true)
545545
} else {
546546
(name, false)
547547
};

0 commit comments

Comments
 (0)