From 7945e3d51c7e1541416b293fc57f52532ea1beca Mon Sep 17 00:00:00 2001 From: Michal Piekarz Date: Sun, 4 Jan 2015 16:39:34 +0100 Subject: [PATCH] Removed deprecated calls. --- src/split/split.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/split/split.rs b/src/split/split.rs index 7c3cbd12e..8a546c16b 100644 --- a/src/split/split.rs +++ b/src/split/split.rs @@ -71,7 +71,7 @@ pub fn uumain(args: Vec) -> 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, settings: &Settings) -> Box { - 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") };