Skip to content

Commit 2c3c20e

Browse files
committed
Fix lint
1 parent 5cf259a commit 2c3c20e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/compiler/src/visitors/type_check_visitor/check_operation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl<'input> TypeCheckVisitor<'input> {
157157
if func.return_type.is_some() {
158158
continue;
159159
}
160-
func.return_type = Box::new(expression_type.clone());
160+
*func.return_type = expression_type.clone();
161161
} else {
162162
self.visit(term.deref());
163163
}

0 commit comments

Comments
 (0)