diff --git a/compiler/src/mode.rs b/compiler/src/mode.rs index 081377513a..e6ca51f388 100644 --- a/compiler/src/mode.rs +++ b/compiler/src/mode.rs @@ -22,8 +22,8 @@ impl std::str::FromStr for Mode { impl Mode { pub fn to_parser_mode(self) -> parser::Mode { match self { - Self::Exec | Self::Single => parser::Mode::Program, - Self::Eval => parser::Mode::Statement, + Mode::Exec | Mode::Single => parser::Mode::Program, + Mode::Eval => parser::Mode::Statement, } } }