From 0c6e470a257fc546555aa10ededded4a77460a71 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 26 Aug 2012 16:54:31 -0700 Subject: Convert core::result to camel case --- src/libstd/test.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libstd/test.rs') diff --git a/src/libstd/test.rs b/src/libstd/test.rs index 803916f64a1..46ad1a95dc3 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -6,7 +6,7 @@ // while providing a base that other test frameworks may build off of. import either::Either; -import result::{ok, err}; +import result::{Ok, Err}; import io::WriterUtil; import libc::size_t; import task::TaskBuilder; @@ -71,8 +71,8 @@ fn parse_opts(args: ~[~str]) -> opt_res { let opts = ~[getopts::optflag(~"ignored"), getopts::optopt(~"logfile")]; let matches = match getopts::getopts(args_, opts) { - ok(m) => m, - err(f) => return either::Right(getopts::fail_str(f)) + Ok(m) => m, + Err(f) => return either::Right(getopts::fail_str(f)) }; let filter = @@ -143,8 +143,8 @@ fn run_tests_console(opts: test_opts, let log_out = match opts.logfile { Some(path) => match io::file_writer(&Path(path), ~[io::Create, io::Truncate]) { - result::ok(w) => Some(w), - result::err(s) => { + result::Ok(w) => Some(w), + result::Err(s) => { fail(fmt!("can't open output file: %s", s)) } }, -- cgit 1.4.1-3-g733a5