Skip to content

Commit 6b3c1fb

Browse files
committed
Underscore not-yet-used field
1 parent d77c642 commit 6b3c1fb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

task/host-sp-comms/src/main.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ impl HostKeyValueStorage {
279279
/// Metadata about panics observed from the host
280280
struct HostPanicMetadata {
281281
/// Length in bytes of the currently stored panic message
282-
total_length: usize,
282+
/// (not currently used, will be used in https://github.com/oxidecomputer/hubris/issues/2504)
283+
_total_length: usize,
283284
/// (hopefully not) Rolling counter of panic messages observed this power cycle
284285
total_count: u32,
285286
}
@@ -1022,7 +1023,7 @@ impl ServerImpl {
10221023
.unwrap_or(0)
10231024
.max(1);
10241025
self.host_boot_fail_state = Some(HostPanicMetadata {
1025-
total_length: n,
1026+
_total_length: n,
10261027
total_count: new_ct,
10271028
});
10281029

@@ -1065,7 +1066,7 @@ impl ServerImpl {
10651066
.unwrap_or(0)
10661067
.max(1);
10671068
self.host_panic_state = Some(HostPanicMetadata {
1068-
total_length: n,
1069+
_total_length: n,
10691070
total_count: new_ct,
10701071
});
10711072

0 commit comments

Comments
 (0)