From eaae51e96b56a36d89681c6f6c5ccc838580e6f4 Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Sun, 27 Oct 2024 21:25:10 +0100 Subject: [PATCH] rune: Fix build --- crates/rune/src/runtime/unit/byte_code.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rune/src/runtime/unit/byte_code.rs b/crates/rune/src/runtime/unit/byte_code.rs index dc5b93859..e8a743a1c 100644 --- a/crates/rune/src/runtime/unit/byte_code.rs +++ b/crates/rune/src/runtime/unit/byte_code.rs @@ -97,7 +97,7 @@ impl UnitStorage for ByteCodeUnit { } fn get(&self, ip: usize) -> Result, BadInstruction> { - let Some(mut bytes) = self.bytes.get(ip..) else { + let Some(bytes) = self.bytes.get(ip..) else { return Ok(None); };