diff --git a/sn_networking/src/log_markers.rs b/sn_networking/src/log_markers.rs index b9da410685..2e6582e424 100644 --- a/sn_networking/src/log_markers.rs +++ b/sn_networking/src/log_markers.rs @@ -18,7 +18,8 @@ use strum::Display; pub enum Marker<'a> { #[allow(dead_code)] /// Close records held (Used in VDash) - CloseRecordsLen(&'a usize), + #[allow(dead_code)] + CloseRecordsLen(usize), /// Store cost StoreCost { /// Cost diff --git a/sn_networking/src/record_store.rs b/sn_networking/src/record_store.rs index 3a38ab8116..96eacbb3ea 100644 --- a/sn_networking/src/record_store.rs +++ b/sn_networking/src/record_store.rs @@ -614,7 +614,7 @@ impl NodeRecordStore { }) .count(); - Marker::CloseRecordsLen(&relevant_records_len).log(); + Marker::CloseRecordsLen(relevant_records_len).log(); relevant_records_len }