Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Nov 13, 2024
1 parent 22f3a72 commit 1c993b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ repos:
- id: cargo-clippy
name: cargo clippy
description: Run clippy lints with `cargo clippy`.
entry: cargo clippy --all-features --workspace -- -D warnings
entry: cargo clippy --all-targets --all-features --workspace -- -D warnings
language: system
files: \.rs$
pass_filenames: false
Expand Down
2 changes: 1 addition & 1 deletion hugr/benches/benchmarks/subgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn bench_singleton_subgraph(c: &mut Criterion) {
&layers,
|b, &layers| {
// Pick a node from the middle of the circuit.
let node = layer_ids.iter().nth(layers / 2).unwrap().cx1;
let node = layer_ids[layers / 2].cx1;
b.iter(|| black_box(SiblingSubgraph::try_from_nodes([node], &hugr)))
},
);
Expand Down

0 comments on commit 1c993b4

Please sign in to comment.