aboutsummaryrefslogtreecommitdiff
path: root/src/lib/util.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-07-12 19:39:29 -0700
committerPatrick Walton <[email protected]>2010-07-15 18:27:09 -0700
commitc96f0bf7386081d21b00af4fa7fcf73ac8d79575 (patch)
treec006fa1a8d9d817b3ccf60a3874034dce5975e3d /src/lib/util.rs
parentRemove log-type-error; everything is loggable. (diff)
downloadrust-c96f0bf7386081d21b00af4fa7fcf73ac8d79575.tar.xz
rust-c96f0bf7386081d21b00af4fa7fcf73ac8d79575.zip
Implement the "simple typechecker", which avoids HM inference
Diffstat (limited to 'src/lib/util.rs')
-rw-r--r--src/lib/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.rs b/src/lib/util.rs
index af031d7d..51f0707c 100644
--- a/src/lib/util.rs
+++ b/src/lib/util.rs
@@ -5,7 +5,7 @@ type operator[T, U] = fn(&T) -> U;
fn option_map[T, U](&operator[T, U] f, &option[T] opt) -> option[U] {
alt (opt) {
case (some[T](x)) {
- ret some[U](f[T, U](x));
+ ret some[U](f(x));
}
case (none[T]()) {
ret none[U]();