mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
clippy
This commit is contained in:
parent
426941ac8c
commit
608d29a81c
@ -38,10 +38,10 @@ impl<'a> CodeGenerator<'a> {
|
||||
|
||||
fn visit_return(&mut self, input: &'a ReturnStatement) -> String {
|
||||
let (operand, mut expression_instructions) = self.visit_expression(&input.expression);
|
||||
let operands = operand.split('\n').collect::<Vec<_>>();
|
||||
let types = self.visit_return_type(&self.current_function.unwrap().output, None);
|
||||
// TODO: Bytecode functions have an associated output mode. Currently defaulting to private since we do not yet support this at the Leo level.
|
||||
let mut instructions = operands
|
||||
let mut instructions = operand
|
||||
.split('\n')
|
||||
.into_iter()
|
||||
.zip(types.iter())
|
||||
.map(|(operand, type_)| format!(" output {} as {};", operand, type_))
|
||||
|
Loading…
Reference in New Issue
Block a user