diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-08-26 16:54:31 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-08-27 14:37:04 -0700 |
| commit | 0c6e470a257fc546555aa10ededded4a77460a71 (patch) | |
| tree | fb54281612401dba521efedab7626474c80195a9 /src/libstd/test.rs | |
| parent | 3a1582012eafb8b672e15b12b5424e72ea6096af (diff) | |
| download | rust-0c6e470a257fc546555aa10ededded4a77460a71.tar.gz rust-0c6e470a257fc546555aa10ededded4a77460a71.zip | |
Convert core::result to camel case
Diffstat (limited to 'src/libstd/test.rs')
| -rw-r--r-- | src/libstd/test.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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)) } }, |
