Skip to content

Commit

Permalink
clippy: Fix unnecessary_mut_passed warning. (#2476)
Browse files Browse the repository at this point in the history
The `ModuleInfo` was not used mutably.
  • Loading branch information
waywardmonkeys authored Sep 13, 2023
1 parent ae9c1f7 commit 266634e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/valid/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl super::Validator {
&self,
handle: Handle<crate::Expression>,
gctx: crate::proc::GlobalCtx,
mod_info: &mut ModuleInfo,
mod_info: &ModuleInfo,
) -> Result<(), super::ConstExpressionError> {
use crate::Expression as E;

Expand Down
2 changes: 1 addition & 1 deletion src/valid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl Validator {
#[cfg(feature = "validate")]
if self.flags.contains(ValidationFlags::CONSTANTS) {
for (handle, _) in module.const_expressions.iter() {
self.validate_const_expression(handle, module.to_ctx(), &mut mod_info)
self.validate_const_expression(handle, module.to_ctx(), &mod_info)
.map_err(|source| {
ValidationError::ConstExpression { handle, source }
.with_span_handle(handle, &module.const_expressions)
Expand Down

0 comments on commit 266634e

Please sign in to comment.