aboutsummaryrefslogtreecommitdiff
path: root/src/lib/util.rs
diff options
context:
space:
mode:
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]();