Skip to content

Commit

Permalink
feat: implement Default for InstructionResult (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Nov 22, 2023
1 parent 3608d2d commit de0b2f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/interpreter/src/instruction_result.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use crate::primitives::{Eval, Halt};

#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum InstructionResult {
// success codes
#[default]
Continue = 0x00,
Stop,
Return,
Expand Down

0 comments on commit de0b2f4

Please sign in to comment.