mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -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;
|
||||
|
||||
@@ -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(" "));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(" ")
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user