Skip to content

Commit 40783d1

Browse files
Merge pull request #1516 from ChJR/hotfix/compat-rustc1.36.0-#1318
Add build compatibility with rustc 1.36.0 since #1318 merged
2 parents 336364c + ad18dfd commit 40783d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/mode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ impl std::str::FromStr for Mode {
2222
impl Mode {
2323
pub fn to_parser_mode(self) -> parser::Mode {
2424
match self {
25-
Self::Exec | Self::Single => parser::Mode::Program,
26-
Self::Eval => parser::Mode::Statement,
25+
Mode::Exec | Mode::Single => parser::Mode::Program,
26+
Mode::Eval => parser::Mode::Statement,
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)