Skip to content

Commit

Permalink
Cargo clippy efficiency improvement suggestions applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
DFINITYManu committed Aug 6, 2024
1 parent bc6ef6c commit ed8e226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollout-dashboard/server/src/frontend_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,12 @@ impl RolloutApi {
// note that this has been updated.
if cache_entry.note != dag_run.note {
meaningful_updates_to_any_rollout = true;
cache_entry.note = dag_run.note.clone();
cache_entry.note.clone_from(&dag_run.note);
}
// Same for the dispatch time.
if cache_entry.dispatch_time != dag_run.logical_date {
meaningful_updates_to_any_rollout = true;
cache_entry.dispatch_time = dag_run.logical_date.clone();
cache_entry.dispatch_time = dag_run.logical_date;
}

let mut rollout = Rollout::new(
Expand Down

0 comments on commit ed8e226

Please sign in to comment.