mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 05:14:27 +00:00
remove redundant clones
(clippy::redundant_clone)
This commit is contained in:
parent
683d1bcd40
commit
be28b6235e
@ -1387,7 +1387,7 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
introduce_suggestion.push((*for_span, for_sugg.to_string()));
|
introduce_suggestion.push((*for_span, for_sugg));
|
||||||
introduce_suggestion.push((span, formatter(<_name)));
|
introduce_suggestion.push((span, formatter(<_name)));
|
||||||
err.multipart_suggestion(&msg, introduce_suggestion, Applicability::MaybeIncorrect);
|
err.multipart_suggestion(&msg, introduce_suggestion, Applicability::MaybeIncorrect);
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ pub fn opts() -> TargetOptions {
|
|||||||
"-lmingw32".to_string(),
|
"-lmingw32".to_string(),
|
||||||
];
|
];
|
||||||
late_link_args.insert(LinkerFlavor::Gcc, mingw_libs.clone());
|
late_link_args.insert(LinkerFlavor::Gcc, mingw_libs.clone());
|
||||||
late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs.clone());
|
late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs);
|
||||||
|
|
||||||
TargetOptions {
|
TargetOptions {
|
||||||
executables: false,
|
executables: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user