mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Add build compatibility with rustc 1.36.0 since #1318 merged
This commit is contained in:
@@ -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