Skip to content

Commit d200939

Browse files
committed
Inline some variables
this doesn't matter a ton but when grepping for where this stuff changed, it was nice to see that this was always assigned to UTC::new. i may revert this before merge.
1 parent ff37443 commit d200939

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sled_agent/sled_agent.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,14 +1059,13 @@ mod test {
10591059
logctx: &LogContext,
10601060
initial_state: ApiInstanceState,
10611061
) -> (SimObject<SimInstance>, Receiver<()>) {
1062-
let now = Utc::now();
10631062
let initial_runtime = {
10641063
ApiInstanceRuntimeState {
10651064
run_state: initial_state,
10661065
reboot_in_progress: false,
10671066
sled_uuid: uuid::Uuid::new_v4(),
10681067
gen: 1,
1069-
time_updated: now,
1068+
time_updated: Utc::now(),
10701069
}
10711070
};
10721071

@@ -1077,12 +1076,11 @@ mod test {
10771076
logctx: &LogContext,
10781077
initial_state: ApiDiskState,
10791078
) -> (SimObject<SimDisk>, Receiver<()>) {
1080-
let now = Utc::now();
10811079
let initial_runtime = {
10821080
ApiDiskRuntimeState {
10831081
disk_state: initial_state,
10841082
gen: 1,
1085-
time_updated: now,
1083+
time_updated: Utc::now(),
10861084
}
10871085
};
10881086

0 commit comments

Comments
 (0)