remove couple of clones
This commit is contained in:
parent
c559c4a741
commit
81042523c6
4 changed files with 4 additions and 4 deletions
|
|
@ -119,7 +119,7 @@ impl<M> ModuleCodegen<M> {
|
|||
});
|
||||
|
||||
CompiledModule {
|
||||
name: self.name.clone(),
|
||||
name: self.name,
|
||||
object,
|
||||
dwarf_object,
|
||||
bytecode,
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ impl ExpnNode {
|
|||
Self {
|
||||
expn_id,
|
||||
|
||||
expn_kind: expn_data.kind.clone(),
|
||||
expn_kind: expn_data.kind,
|
||||
call_site,
|
||||
call_site_expn_id,
|
||||
|
||||
|
|
|
|||
|
|
@ -3099,7 +3099,7 @@ impl<'ast, 'ra, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
|
|||
|err, _, span, message, suggestion, span_suggs| {
|
||||
err.multipart_suggestion_verbose(
|
||||
message,
|
||||
std::iter::once((span, suggestion)).chain(span_suggs.clone()).collect(),
|
||||
std::iter::once((span, suggestion)).chain(span_suggs).collect(),
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
true
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
|
|||
let (expected, found) = if expected_str == found_str {
|
||||
(join_path_syms(&expected_abs), join_path_syms(&found_abs))
|
||||
} else {
|
||||
(expected_str.clone(), found_str.clone())
|
||||
(expected_str, found_str)
|
||||
};
|
||||
|
||||
// We've displayed "expected `a::b`, found `a::b`". We add context to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue