Replace deprecated methods.

This commit is contained in:
Joseph Crail 2015-07-27 00:35:34 -04:00
parent b5a5816271
commit 157c20c7d3
5 changed files with 5 additions and 5 deletions

View file

@ -174,7 +174,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
};
if !free.is_empty() {
let string = free.connect(" ");
let string = free.join(" ");
if options.escape {
let mut prev_was_slash = false;
let mut iter = string.chars().enumerate();

View file

@ -55,7 +55,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
opts.optflag("h", "help", "Show help");
opts.optflag("V", "version", "Show program's version");
let matches = match opts.parse(args.tail()) {
let matches = match opts.parse(&args[1..]) {
Ok(m) => { m }
_ => { help_menu(program, opts); return 0; }
};

View file

@ -421,7 +421,7 @@ fn adjust_tex_str(context: &str) -> String {
let ws_reg = Regex::new(r"[\t\n\v\f\r ]").unwrap();
let mut fix: String = ws_reg.replace_all(context, " ").trim().to_string();
let mapped_chunks: Vec<String> = fix.chars().map(tex_mapper).collect();
fix = mapped_chunks.connect("");
fix = mapped_chunks.join("");
fix
}

View file

@ -117,6 +117,6 @@ fn exec(filename: &str) {
if users.len() > 0 {
users.sort();
println!("{}", users.connect(" "));
println!("{}", users.join(" "));
}
}

View file

@ -50,7 +50,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
let string = if matches.free.is_empty() {
"y".to_string()
} else {
matches.free.connect(" ")
matches.free.join(" ")
};
exec(&string[..]);