Skip to content

Commit

Permalink
Fix msrv.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Aug 4, 2023
1 parent 39260da commit 7647885
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/eval/debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ pub type OnDebuggerCallback = dyn Fn(EvalContext, DebuggerEvent, ASTNode, Option
+ Sync;

/// A command for the debugger on the next iteration.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Default, Hash)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[non_exhaustive]
pub enum DebuggerCommand {
/// Continue normal execution.
#[default]
Continue,
/// Step into the next expression, diving into functions.
StepInto,
Expand All @@ -47,6 +46,13 @@ pub enum DebuggerCommand {
FunctionExit,
}

impl Default for DebuggerCommand {
#[inline(always)]
fn default() -> Self {
Self::Continue
}
}

/// The debugger status.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[non_exhaustive]
Expand Down

0 comments on commit 7647885

Please sign in to comment.