Skip to content

Commit

Permalink
Fix fmt warnings and update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jimouris committed Oct 3, 2024
1 parent 848f6cc commit 140c68e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install nightly
run: rustup toolchain install nightly
run: rustup toolchain install 1.81.0

- name: Install rustfmt
run: rustup +nightly component add rustfmt
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ group_imports = "StdExternalCrate"
imports_granularity = "Crate"
merge_derives = false
use_field_init_shorthand = true
version = "Two"
style_edition = "2021"
9 changes: 4 additions & 5 deletions src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,10 @@ impl Collector for CollectorServer {
let mut coll = self.arc.lock().unwrap();

for rejected_client_index in req.rejected {
debug_assert!(
coll.attribute_based_metrics_state
.remove(&rejected_client_index)
.is_some()
);
debug_assert!(coll
.attribute_based_metrics_state
.remove(&rejected_client_index)
.is_some());
}

let mut agg_share =
Expand Down

0 comments on commit 140c68e

Please sign in to comment.