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:
@@ -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
|
||||
|
Reference in New Issue
Block a user