Remove unnecessary clones

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-10-26 18:11:01 +02:00
parent 49af4e44f7
commit 4366ae116a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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!(