aconfig: remove unnecessary clones

Improve performance slightly: remove unnecessary clone operations, or
use references where a new object is not needed.

Bug: 283910447
Test: atest aconfig.test
Change-Id: I75205ffa1723dd2654039baac882c225d2653c86
This commit is contained in:
Mårten Kongstad
2023-09-11 11:10:02 +02:00
parent 7d63a84642
commit b5133f6ad4
3 changed files with 13 additions and 13 deletions

View File

@@ -282,7 +282,7 @@ mod tests {
None,
crate::test::first_significant_code_diff(
file_set.get(file_path).unwrap(),
&String::from_utf8(file.contents.clone()).unwrap()
&String::from_utf8(file.contents).unwrap()
),
"File {} content is not correct",
file_path
@@ -362,7 +362,7 @@ mod tests {
None,
crate::test::first_significant_code_diff(
file_set.get(file_path).unwrap(),
&String::from_utf8(file.contents.clone()).unwrap()
&String::from_utf8(file.contents).unwrap()
),
"File {} content is not correct",
file_path