mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 22:17:45 +00:00
Remove tail return statements.
This commit is contained in:
parent
57050517f9
commit
f502b187a7
5 changed files with 5 additions and 6 deletions
|
@ -123,7 +123,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
|
|
||||||
expand(Options::new(matches));
|
expand(Options::new(matches));
|
||||||
|
|
||||||
return 0;
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open(path: String) -> BufReader<Box<Read+'static>> {
|
fn open(path: String) -> BufReader<Box<Read+'static>> {
|
||||||
|
|
|
@ -352,5 +352,5 @@ fn existing_backup_path(path: &Path, suffix: &String) -> Path {
|
||||||
if test_path.exists() {
|
if test_path.exists() {
|
||||||
return numbered_backup_path(path);
|
return numbered_backup_path(path);
|
||||||
}
|
}
|
||||||
return simple_backup_path(path, suffix);
|
simple_backup_path(path, suffix)
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,5 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
cores -= ignore;
|
cores -= ignore;
|
||||||
}
|
}
|
||||||
println!("{}", cores);
|
println!("{}", cores);
|
||||||
|
0
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
println!("{}", x);
|
println!("{}", x);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
// We use String as a representation of node here
|
// We use String as a representation of node here
|
||||||
|
|
|
@ -114,7 +114,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
|
|
||||||
unexpand(Options::new(matches));
|
unexpand(Options::new(matches));
|
||||||
|
|
||||||
return 0;
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn open(path: String) -> BufReader<Box<Read+'static>> {
|
fn open(path: String) -> BufReader<Box<Read+'static>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue