Skip to content

Commit 04b8cf8

Browse files
committed
Unnecessary clone call
1 parent bb022c9 commit 04b8cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent/legacy_schedule.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ mod tests {
387387
let ok_datetimes = [
388388
NaiveDate::from_ymd_opt(2023, 11, 20)
389389
.unwrap()
390-
.and_time(MAX_TIME_INSTANT.clone())
390+
.and_time(MAX_TIME_INSTANT)
391391
.and_local_timezone(Tz::Europe__Amsterdam)
392392
.unwrap(),
393393
NaiveDateTime::parse_from_str("2023-11-21 00:00", format)?
@@ -404,7 +404,7 @@ mod tests {
404404
// confused for Wednesday 00:00 which is open.
405405
NaiveDate::from_ymd_opt(2023, 11, 21)
406406
.unwrap()
407-
.and_time(MAX_TIME_INSTANT.clone())
407+
.and_time(MAX_TIME_INSTANT)
408408
.and_local_timezone(Tz::Europe__Amsterdam)
409409
.unwrap(),
410410
];

0 commit comments

Comments
 (0)