mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-13 17:10:39 +00:00
address "why mut" nits; https://github.com/neondatabase/neon/pull/10353#discussion_r1913685991 https://github.com/neondatabase/neon/pull/10353#discussion_r1913683065 https://github.com/neondatabase/neon/pull/10353#discussion_r1913683392
This commit is contained in:
@@ -1293,7 +1293,7 @@ impl SmgrOpTimer {
|
||||
};
|
||||
let SmgrOpTimerState::Throttling {
|
||||
throttle_started_at,
|
||||
} = &mut inner.timings
|
||||
} = &inner.timings
|
||||
else {
|
||||
return;
|
||||
};
|
||||
@@ -1324,7 +1324,7 @@ impl SmgrOpTimer {
|
||||
let Some(inner) = self.0.as_mut() else {
|
||||
return;
|
||||
};
|
||||
let SmgrOpTimerState::Batching { throttle_done_at } = &mut inner.timings else {
|
||||
let SmgrOpTimerState::Batching { throttle_done_at } = &inner.timings else {
|
||||
return;
|
||||
};
|
||||
// update metrics
|
||||
@@ -1354,7 +1354,7 @@ impl SmgrOpTimer {
|
||||
};
|
||||
let SmgrOpTimerState::Executing {
|
||||
execution_started_at,
|
||||
} = &mut inner.timings
|
||||
} = &inner.timings
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user