Skip to content

Commit 08ecb91

Browse files
authored
Rollup merge of #105854 - matthiaskrgr:rmclone, r=compiler-errors
remove redundant clone
2 parents c16b969 + 1ade254 commit 08ecb91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_builtin_macros/src/global_allocator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn expand(
3535
(item, true, ecx.with_def_site_ctxt(ty.span))
3636
} else {
3737
ecx.sess.parse_sess.span_diagnostic.span_err(item.span(), "allocators must be statics");
38-
return vec![orig_item.clone()]
38+
return vec![orig_item];
3939
};
4040

4141
// Generate a bunch of new items using the AllocFnFactory

0 commit comments

Comments
 (0)