From ad18dfdfe1215c3186cfbdd7886c28eac696e4fe Mon Sep 17 00:00:00 2001 From: ChJR Date: Sun, 13 Oct 2019 15:53:49 +0900 Subject: [PATCH] Add build compatibility with rustc 1.36.0 since #1318 merged --- compiler/src/mode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } } }