mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-16 01:25:25 +00:00
Add build compatibility with rustc 1.36.0 since #1318 merged
This commit is contained in:
parent
31b6e815f6
commit
939b49dc81
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue