From 79e04007ca24888879d63594fc733ef207f9faff Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Sun, 12 Nov 2023 18:22:05 +0100 Subject: [PATCH] fix: Remove redundant clone() --- src/scheduler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.rs b/src/scheduler.rs index 8fd7fce..62267bf 100644 --- a/src/scheduler.rs +++ b/src/scheduler.rs @@ -202,7 +202,7 @@ impl NextAction { match self.0 { Some((_, cur_date)) if date >= cur_date => {} _ => { - self.0 = Some((name.clone().to_owned(), date)); + self.0 = Some((name.to_owned(), date)); } } }