diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-29 19:33:48 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-12-29 19:40:03 +0100 |
| commit | 17a8c1017f189b9921794b90e3fa3a46ed35e5c5 (patch) | |
| tree | a5e9c8e8601634afb3a5648aee59157e1275af46 /compiler/rustc_codegen_ssa/src | |
| parent | 158f8d034b15e65ba8dc0d066358dd0632bfcd6e (diff) | |
| download | rust-17a8c1017f189b9921794b90e3fa3a46ed35e5c5.tar.gz rust-17a8c1017f189b9921794b90e3fa3a46ed35e5c5.zip | |
don't clone copy types
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/lib.rs b/compiler/rustc_codegen_ssa/src/lib.rs index bc93bd8b7bd..e27eac3f69b 100644 --- a/compiler/rustc_codegen_ssa/src/lib.rs +++ b/compiler/rustc_codegen_ssa/src/lib.rs @@ -116,7 +116,7 @@ pub struct NativeLib { impl From<&cstore::NativeLib> for NativeLib { fn from(lib: &cstore::NativeLib) -> Self { - NativeLib { kind: lib.kind.clone(), name: lib.name.clone(), cfg: lib.cfg.clone() } + NativeLib { kind: lib.kind, name: lib.name, cfg: lib.cfg.clone() } } } |
