aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.rs b/src/util.rs
index 5d3baaa..1962fb4 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -53,10 +53,7 @@ pub fn Cond(if_cond: Expression, if_then: Expression, if_else: Expression) -> Ex
}
pub fn Func(from: Type, to: Type) -> Type {
- return Type::Function {
- from: Box::new(from),
- to: Box::new(to)
- }
+ return Type::Function(Box::new(from), Box::new(to))
}
pub const Empty: Type = Type::Empty;