don't clone copy types

This commit is contained in:
Matthias Krüger 2020-12-29 19:33:48 +01:00
parent 158f8d034b
commit 17a8c1017f
6 changed files with 10 additions and 10 deletions

View file

@ -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() }
}
}