-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix panic in who > /dev/full #10801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix panic in who > /dev/full #10801
Conversation
|
GNU testsuite comparison: |
This comment was marked as resolved.
This comment was marked as resolved.
|
GNU testsuite comparison: |
|
some jobs are failing |
|
GNU testsuite comparison: |
|
@sylvestre, @oech3, now CI is passing. Should I add test with |
| use std::borrow::Cow; | ||
| use std::ffi::CStr; | ||
| use std::fmt::Write; | ||
| use std::io::{self, Write as _}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the "as _"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it would conflict with use std::fmt::Write;:
error[E0252]: the name `Write` is defined multiple times
--> src/uu/who/src/platform/unix.rs:21:21
|
20 | use std::fmt::Write;
| --------------- previous import of the trait `Write` here
21 | use std::io::{self, Write};
| ^^^^^ `Write` reimported here
|There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, just remove the declaration then ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. needed for std{out,err}.
Fixes #10550