From 4366ae116a8470d9dbe124c47a8052d96b2f182b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 26 Oct 2023 18:11:01 +0200 Subject: [PATCH] Remove unnecessary clones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/component/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/test.rs b/src/component/test.rs index b1442eb..c6184cb 100644 --- a/src/component/test.rs +++ b/src/component/test.rs @@ -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!(