mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Add build compatibility with rustc 1.36.0 since #1318 merged
This commit is contained in:
1 parent
336364c80d
commit
ad18dfdfe1
1 file changed
+2
-2
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user