We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e602b commit 75b3e0dCopy full SHA for 75b3e0d
compiler/src/compile.rs
@@ -119,8 +119,8 @@ fn compile_impl<Ast: ?Sized>(
119
ast: &Ast,
120
source_path: String,
121
opts: CompileOpts,
122
- make_symbol_table: fn(&Ast) -> Result<SymbolTable, symboltable::SymbolTableError>,
123
- 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<()>,
124
) -> CompileResult<CodeObject> {
125
let symbol_table = match make_symbol_table(ast) {
126
Ok(x) => x,
0 commit comments