Jelajahi Sumber

Remove unneeded clone

Isaac Woods 3 tahun lalu
induk
melakukan
1adb4e08dc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      aml/src/term_object.rs

+ 1 - 1
aml/src/term_object.rs

@@ -403,7 +403,7 @@ where
             pkg_length()
                 .then(name_string())
                 .map_with_context(|(length, name), context| {
-                    let resolved_name = try_with_context!(context, name.clone().resolve(&context.current_scope));
+                    let resolved_name = try_with_context!(context, name.resolve(&context.current_scope));
                     try_with_context!(
                         context,
                         context.namespace.add_level(resolved_name.clone(), LevelType::Device)