From 04a2887f8791bb080b4e76a55949a7c1954dbb97 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 18 Jan 2012 22:37:22 -0800 Subject: Remove '.' after nullary tags in patterns Does what it says on the tin. The next commit will remove support for this syntax. --- src/cargo/cargo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cargo') diff --git a/src/cargo/cargo.rs b/src/cargo/cargo.rs index afab69443ed..3ab33e9b0be 100644 --- a/src/cargo/cargo.rs +++ b/src/cargo/cargo.rs @@ -417,7 +417,7 @@ fn install_source(c: cargo, path: str) { for cf: str in cratefiles { let p = load_pkg(cf); alt p { - none. { cont; } + none { cont; } some(_p) { if c.test { test_one_crate(c, path, cf, _p); @@ -559,7 +559,7 @@ fn cmd_install(c: cargo, argv: [str]) { let wd = alt tempfile::mkdtemp(c.workdir + fs::path_sep(), "") { some(_wd) { _wd } - none. { fail "needed temp dir"; } + none { fail "needed temp dir"; } }; if str::starts_with(target, "uuid:") { -- cgit 1.4.1-3-g733a5