Skip to content

Commit

Permalink
[switch] add reason fields to allow directives to make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-emrich committed Dec 3, 2024
1 parent e6632ae commit 87b663e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cranelift/src/wasmfx/optimized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ pub(crate) mod typed_continuation_helpers {
HandlerList::new(self.address, offset as i32)
}

#[allow(clippy::cast_possible_truncation)]
#[allow(clippy::cast_possible_truncation, reason = "TODO")]
pub fn get_first_switch_handler_index<'a>(
&self,
_env: &mut crate::func_environ::FuncEnvironment<'a>,
Expand All @@ -1218,7 +1218,7 @@ pub(crate) mod typed_continuation_helpers {
.load(I32, memflags, self.address, offset as i32)
}

#[allow(clippy::cast_possible_truncation)]
#[allow(clippy::cast_possible_truncation, reason = "TODO")]
pub fn set_first_switch_handler_index<'a>(
&self,
_env: &mut crate::func_environ::FuncEnvironment<'a>,
Expand Down Expand Up @@ -2312,7 +2312,7 @@ pub(crate) fn translate_suspend<'a>(
return_values
}

#[allow(clippy::cast_possible_truncation)]
#[allow(clippy::cast_possible_truncation, reason = "TODO")]
pub(crate) fn translate_switch<'a>(
env: &mut crate::func_environ::FuncEnvironment<'a>,
builder: &mut FunctionBuilder,
Expand Down

0 comments on commit 87b663e

Please sign in to comment.