We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4b1617 + f4b1a97 commit 05c161cCopy full SHA for 05c161c
src/uu/id/src/id.rs
@@ -174,13 +174,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
174
));
175
}
176
177
- let delimiter = {
178
- if state.zflag {
179
- "\0".to_string()
180
- } else {
181
- " ".to_string()
182
- }
183
- };
+ let delimiter = if state.zflag { "\0" } else { " " };
184
let line_ending = LineEnding::from_zero_flag(state.zflag);
185
186
if state.cflag {
@@ -307,7 +301,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
307
301
308
302
})
309
303
.collect::<Vec<_>>()
310
- .join(&delimiter),
304
+ .join(delimiter),
311
305
// NOTE: this is necessary to pass GNU's "tests/id/zero.sh":
312
306
if state.zflag && state.user_specified && users.len() > 1 {
313
"\0"
0 commit comments