mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 21:17:46 +00:00
Removed deprecated calls.
This commit is contained in:
parent
dbd1d34ba3
commit
7945e3d51c
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ pub fn uumain(args: Vec<String>) -> int {
|
|||
settings.numeric_suffix = if matches.opt_present("d") { true } else { false };
|
||||
|
||||
settings.suffix_length = match matches.opt_str("a") {
|
||||
Some(n) => match from_str(n.as_slice()) {
|
||||
Some(n) => match n.as_slice().parse() {
|
||||
Some(m) => m,
|
||||
None => crash!(1, "cannot parse num")
|
||||
},
|
||||
|
@ -139,7 +139,7 @@ struct LineSplitter {
|
|||
|
||||
impl Splitter for LineSplitter {
|
||||
fn new(_: Option<LineSplitter>, settings: &Settings) -> Box<Splitter> {
|
||||
let n = match from_str(settings.strategy_param.as_slice()) {
|
||||
let n = match settings.strategy_param.as_slice().parse() {
|
||||
Some(a) => a,
|
||||
_ => crash!(1, "invalid number of lines")
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue