Removed unnecessary option return type

This commit is contained in:
2026-05-04 17:14:17 +02:00
parent 32a08d3e7f
commit 7b1d2e3d91
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ impl TryFrom<pest::iterators::Pair<'_, Rule>> for TopLevel {
false
};
let return_type = Some(TypeExpr::from(inner.next().unwrap()));
let return_type = TypeExpr::from(inner.next().unwrap());
let name = inner.next().unwrap().as_str().to_string();
let params = if inner.peek().unwrap().as_rule() == Rule::param_list {