Skip to content

Commit

Permalink
rune: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Oct 27, 2024
1 parent 774f1d5 commit eaae51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rune/src/runtime/unit/byte_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl UnitStorage for ByteCodeUnit {
}

fn get(&self, ip: usize) -> Result<Option<(Inst, usize)>, BadInstruction> {
let Some(mut bytes) = self.bytes.get(ip..) else {
let Some(bytes) = self.bytes.get(ip..) else {
return Ok(None);
};

Expand Down

0 comments on commit eaae51e

Please sign in to comment.