summaryrefslogtreecommitdiff
path: root/dhall/src/operations/typecheck.rs
diff options
context:
space:
mode:
authorNadrieril2021-01-22 19:23:44 +0000
committerNadrieril2021-01-22 19:26:25 +0000
commit9ac6740b21b87eca327b4e3acad5a6b647b3636c (patch)
tree921d559c73534d492960c6e656384ef354053cbb /dhall/src/operations/typecheck.rs
parent11ff03a8113580244ced04a8b370ab6192b8e413 (diff)
chore: fix clippy warnings
Diffstat (limited to '')
-rw-r--r--dhall/src/operations/typecheck.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/dhall/src/operations/typecheck.rs b/dhall/src/operations/typecheck.rs
index 9b19c84..e62a8cc 100644
--- a/dhall/src/operations/typecheck.rs
+++ b/dhall/src/operations/typecheck.rs
@@ -219,10 +219,8 @@ fn typecheck_merge<'cx>(
// TODO: this actually doesn't check anything yet
match closure.remove_binder() {
- Ok(v) => Type::new_infer_universe(env, v.clone())?,
- Err(()) => {
- return span_err("MergeReturnTypeIsDependent")
- }
+ Some(v) => Type::new_infer_universe(env, v.clone())?,
+ None => return span_err("MergeReturnTypeIsDependent"),
}
}
_ => {