File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ impl DownloadTracker {
155
155
fn display ( & mut self ) {
156
156
match self . start_sec {
157
157
// Maybe forgot to call `prepare_for_new_download` first
158
- None => return ,
158
+ None => { }
159
159
Some ( start_sec) => {
160
160
// Panic if someone pops the default bytes unit...
161
161
let unit = * self . units . last ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ pub fn main() -> Result<()> {
106
106
107
107
let opts = InstallOpts {
108
108
default_host_triple : default_host,
109
- default_toolchain : default_toolchain . to_owned ( ) ,
109
+ default_toolchain,
110
110
profile : profile. to_owned ( ) ,
111
111
no_modify_path,
112
112
components : & components,
Original file line number Diff line number Diff line change @@ -332,8 +332,7 @@ impl FromStr for PartialToolchainDesc {
332
332
type Err = Error ;
333
333
fn from_str ( name : & str ) -> Result < Self > {
334
334
let parsed: ParsedToolchainDesc = name. parse ( ) ?;
335
- let target =
336
- PartialTargetTriple :: new ( parsed. target . as_ref ( ) . map ( |c| c. as_str ( ) ) . unwrap_or ( "" ) ) ;
335
+ let target = PartialTargetTriple :: new ( parsed. target . as_deref ( ) . unwrap_or ( "" ) ) ;
337
336
338
337
target
339
338
. map ( |target| Self {
You can’t perform that action at this time.
0 commit comments