1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

Merge pull request #596 from jbcrail/remove-returns

Remove tail return statements.
This commit is contained in:
Heather 2015-05-13 07:21:55 +03:00
commit eba90561f6
5 changed files with 5 additions and 6 deletions

View file

@ -123,7 +123,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
expand(Options::new(matches));
return 0;
0
}
fn open(path: String) -> BufReader<Box<Read+'static>> {

View file

@ -352,5 +352,5 @@ fn existing_backup_path(path: &Path, suffix: &String) -> Path {
if test_path.exists() {
return numbered_backup_path(path);
}
return simple_backup_path(path, suffix);
simple_backup_path(path, suffix)
}

View file

@ -82,6 +82,5 @@ pub fn uumain(args: Vec<String>) -> i32 {
cores -= ignore;
}
println!("{}", cores);
return 0
0
}

View file

@ -109,7 +109,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
println!("{}", x);
}
return 0
0
}
// We use String as a representation of node here

View file

@ -114,7 +114,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
unexpand(Options::new(matches));
return 0;
0
}
fn open(path: String) -> BufReader<Box<Read+'static>> {