about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/getopts.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs
index cac17b319e1..ea62f3cc3c4 100644
--- a/src/libstd/getopts.rs
+++ b/src/libstd/getopts.rs
@@ -877,7 +877,7 @@ mod tests {
         let opts = ~[optopt(~"e"), optopt(~"encrypt")];
         let matches = match getopts(args, opts) {
           result::ok(m) => m,
-          result::err(f) => fail
+          result::err(_) => fail
         };
         assert opts_present(matches, ~[~"e"]);
         assert opts_present(matches, ~[~"encrypt"]);
@@ -898,7 +898,7 @@ mod tests {
         let opts = ~[optmulti(~"L")];
         let matches = match getopts(args, opts) {
           result::ok(m) => m,
-          result::err(f) => fail
+          result::err(_) => fail
         };
         assert opts_present(matches, ~[~"L"]);
         assert opts_str(matches, ~[~"L"]) == ~"foo";