mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-16 09:35:19 +00:00
fn -> impl FnOnce
https://github.com/RustPython/RustPython/pull/3674#discussion_r862511425
This commit is contained in:
parent
bbf475e212
commit
33ddf76b26
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ fn compile_impl<Ast: ?Sized>(
|
|||
ast: &Ast,
|
||||
source_path: String,
|
||||
opts: CompileOpts,
|
||||
make_symbol_table: fn(&Ast) -> Result<SymbolTable, symboltable::SymbolTableError>,
|
||||
compile: fn(&mut Compiler, &Ast, SymbolTable) -> CompileResult<()>,
|
||||
make_symbol_table: impl FnOnce(&Ast) -> Result<SymbolTable, symboltable::SymbolTableError>,
|
||||
compile: impl FnOnce(&mut Compiler, &Ast, SymbolTable) -> CompileResult<()>,
|
||||
) -> CompileResult<CodeObject> {
|
||||
let symbol_table = match make_symbol_table(ast) {
|
||||
Ok(x) => x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue