Skip to content

Commit

Permalink
fixed clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sabledb-io committed Aug 18, 2024
1 parent 6ef1945 commit c510cc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libsabledb/src/server/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl ReplicationTelemetry {

match d.role {
ServerRole::Primary => {
for (_, info) in &mut d.primary_telemetry.replicas {
for info in &mut d.primary_telemetry.replicas.values_mut() {
info.distance_from_primary =
seq_num.saturating_sub(info.last_change_sequence_number);
}
Expand Down
2 changes: 1 addition & 1 deletion libsabledb/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ macro_rules! storage_rocksdb {
}};
}

pub const SEQUENCES_FILE: &'static str = "changes.seq";
pub const SEQUENCES_FILE: &str = "changes.seq";

0 comments on commit c510cc2

Please sign in to comment.