1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Add comments for deprecated connect().

We are using connect() instead of join() until Rust 1.3 is stable.
Currently, connect() is just a thin wrapper over join(). Keeping the
deprecated method allows us to build on all releases.
This commit is contained in:
Joseph Crail 2015-08-09 23:12:23 -04:00
parent 878ce3dfbe
commit 480019f5b3
3 changed files with 3 additions and 0 deletions

View file

@ -174,6 +174,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
};
if !free.is_empty() {
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
let string = free.connect(" ");
if options.escape {
let mut prev_was_slash = false;

View file

@ -117,6 +117,7 @@ fn exec(filename: &str) {
if users.len() > 0 {
users.sort();
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
println!("{}", users.connect(" "));
}
}

View file

@ -50,6 +50,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
let string = if matches.free.is_empty() {
"y".to_string()
} else {
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
matches.free.connect(" ")
};