Skip to content

Commit 09c6149

Browse files
authoredSep 9, 2020
Rollup merge of #76522 - matthiaskrgr:redundant_clone, r=jonas-schievink
remove redundant clones (clippy::redundant_clone)
2 parents 09a364e + be28b62 commit 09c6149

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎compiler/rustc_resolve/src/late/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
13871387
}
13881388
}
13891389
}
1390-
introduce_suggestion.push((*for_span, for_sugg.to_string()));
1390+
introduce_suggestion.push((*for_span, for_sugg));
13911391
introduce_suggestion.push((span, formatter(&lt_name)));
13921392
err.multipart_suggestion(&msg, introduce_suggestion, Applicability::MaybeIncorrect);
13931393
}

‎compiler/rustc_target/src/spec/windows_uwp_gnu_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn opts() -> TargetOptions {
2222
"-lmingw32".to_string(),
2323
];
2424
late_link_args.insert(LinkerFlavor::Gcc, mingw_libs.clone());
25-
late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs.clone());
25+
late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs);
2626

2727
TargetOptions {
2828
executables: false,

0 commit comments

Comments
 (0)
Please sign in to comment.