Skip to content

Commit

Permalink
Fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-uta committed Jan 21, 2025
1 parent 07aa1dd commit d18ba45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ impl<'a> QueryContext<'a> {
let is_wasm64_execution = canister
.execution_state
.as_ref()
.map_or(false, |es| es.is_wasm64);
.is_some_and(|es| es.is_wasm64);

let max_canister_memory_size = if is_wasm64_execution {
self.max_canister_memory_size_wasm64
Expand Down
2 changes: 1 addition & 1 deletion rs/execution_environment/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ impl SchedulerImpl {
let canister_is_wasm64 = canister
.execution_state
.as_ref()
.map_or(false, |es| es.is_wasm64);
.is_some_and(|es| es.is_wasm64);

if let Err(err) = canister
.check_invariants(self.exec_env.max_canister_memory_size(canister_is_wasm64))
Expand Down

0 comments on commit d18ba45

Please sign in to comment.