mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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:
parent
878ce3dfbe
commit
480019f5b3
3 changed files with 3 additions and 0 deletions
|
@ -174,6 +174,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
};
|
};
|
||||||
|
|
||||||
if !free.is_empty() {
|
if !free.is_empty() {
|
||||||
|
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
|
||||||
let string = free.connect(" ");
|
let string = free.connect(" ");
|
||||||
if options.escape {
|
if options.escape {
|
||||||
let mut prev_was_slash = false;
|
let mut prev_was_slash = false;
|
||||||
|
|
|
@ -117,6 +117,7 @@ fn exec(filename: &str) {
|
||||||
|
|
||||||
if users.len() > 0 {
|
if users.len() > 0 {
|
||||||
users.sort();
|
users.sort();
|
||||||
|
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
|
||||||
println!("{}", users.connect(" "));
|
println!("{}", users.connect(" "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,6 +50,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
|
||||||
let string = if matches.free.is_empty() {
|
let string = if matches.free.is_empty() {
|
||||||
"y".to_string()
|
"y".to_string()
|
||||||
} else {
|
} else {
|
||||||
|
// NB: Using deprecated connect() until Rust 1.3 becomes stable.
|
||||||
matches.free.connect(" ")
|
matches.free.connect(" ")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue