1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Use -O instead of --opt-level 3 (closes #194)

This commit is contained in:
Arcterus 2014-12-03 10:12:43 -08:00
parent 68fd0971d0
commit db48d109e7
2 changed files with 5 additions and 6 deletions

View file

@ -19,7 +19,7 @@ TESTDIR := $(BASEDIR)/test
TEMPDIR := $(BASEDIR)/tmp TEMPDIR := $(BASEDIR)/tmp
# Flags # Flags
RUSTCFLAGS := --opt-level=3 -L $(BUILDDIR)/ RUSTCFLAGS := -O -L $(BUILDDIR)/
RMFLAGS := RMFLAGS :=
# Handle config setup # Handle config setup

View file

@ -9,7 +9,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
#![feature(macro_rules)] #![feature(if_let, macro_rules)]
extern crate getopts; extern crate getopts;
extern crate libc; extern crate libc;
@ -114,10 +114,9 @@ pub fn uumain(args: Vec<String>) -> int {
return 0; return 0;
} }
} }
match remove(matches.free, force, interactive, one_fs, preserve_root, if let Err(e) = remove(matches.free, force, interactive, one_fs, preserve_root,
recursive, dir, verbose) { recursive, dir, verbose) {
Ok(()) => ( /* pass */ ), return e;
Err(e) => return e
} }
} }