Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
berestovskyy committed Nov 13, 2024
1 parent 72889dd commit 77ff778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rs/execution_environment/benches/load_simulator_canisters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn setup_env(total_canisters: usize) -> StateMachine {
format!(
r#"[[{}],[{}]]"#,
bytes_to_str(&wasm.clone().bytes()),
bytes_to_str(&vec![])
bytes_to_str(&[])
)
.as_bytes()
.to_vec(),
Expand All @@ -87,7 +87,7 @@ fn run_load_simulator_canisters(total_canisters: usize, rounds: u64, c: &mut Cri
bench.iter_batched(
|| setup_env(total_canisters),
|env| {
for r in 1..=rounds {
for _ in 1..=rounds {
env.advance_time(Duration::from_secs(1));
env.tick();
}
Expand Down
2 changes: 1 addition & 1 deletion rs/rust_canisters/load_simulator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::cell::RefCell;
use std::time::Duration;

thread_local! {
static COUNTER: RefCell<i32> = RefCell::new(0);
static COUNTER: RefCell<i32> = const { RefCell::new(0) };
}

async fn timer_handler() {
Expand Down

0 comments on commit 77ff778

Please sign in to comment.