Remove unnecessary clones
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
49af4e44f7
commit
4366ae116a
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ impl Component {
|
|||
}
|
||||
|
||||
fn compare_hl(expected: &str, actual: &str) -> String {
|
||||
let hl_expected = Component::hl(expected.clone());
|
||||
let hl_actual = Component::hl(actual.clone());
|
||||
let hl_expected = Component::hl(expected);
|
||||
let hl_actual = Component::hl(actual);
|
||||
|
||||
if expected == actual {
|
||||
return format!(
|
||||
|
|
Loading…
Reference in a new issue