Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vaivaswatha committed Feb 26, 2025
1 parent 63def49 commit c0f6b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-core/src/ir_generation/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub(crate) fn compile_const_decl(
let constant = global_var
.get_initializer(env.context)
.expect("const decl without initializer, should've been detected way early");
return Ok(Some(Value::new_constant(env.context, *constant)));
Ok(Some(Value::new_constant(env.context, *constant)))
}
(None, Some(module_ns)) => {
// See if we it's a global const and whether we can compile it *now*.
Expand Down

0 comments on commit c0f6b7e

Please sign in to comment.