diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 00:29:25 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 00:29:25 +0100 |
| commit | 1ade25491e8849d521fdb655c40102b1ffa15ae6 (patch) | |
| tree | 6b07f6f2477f381a4384bf05eb91847da085407d /compiler/rustc_builtin_macros/src/global_allocator.rs | |
| parent | 2d76a9df5d040e8dfcb23e01fc3847c628d833e4 (diff) | |
| download | rust-1ade25491e8849d521fdb655c40102b1ffa15ae6.tar.gz rust-1ade25491e8849d521fdb655c40102b1ffa15ae6.zip | |
remove redundant clone
Diffstat (limited to 'compiler/rustc_builtin_macros/src/global_allocator.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/global_allocator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/global_allocator.rs b/compiler/rustc_builtin_macros/src/global_allocator.rs index 41531580c19..f8761653bf5 100644 --- a/compiler/rustc_builtin_macros/src/global_allocator.rs +++ b/compiler/rustc_builtin_macros/src/global_allocator.rs @@ -35,7 +35,7 @@ pub fn expand( (item, true, ecx.with_def_site_ctxt(ty.span)) } else { ecx.sess.parse_sess.span_diagnostic.span_err(item.span(), "allocators must be statics"); - return vec![orig_item.clone()] + return vec![orig_item]; }; // Generate a bunch of new items using the AllocFnFactory |
