-
Notifications
You must be signed in to change notification settings - Fork 130
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
Fix #208 (Remove pipe for BufferWriter and implement handeling in Writer) #211
Conversation
I'll write a test today and merge. |
Sry for the force push, but at lest the linter fixes are cleaner now. |
WritableTarget::Stdout => print!("{}", String::from_utf8_lossy(&buf.0)), | ||
WritableTarget::Stderr => eprint!("{}", String::from_utf8_lossy(&buf.0)), | ||
WritableTarget::Pipe(_) => unreachable!(), |
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.
Maybe I am missing something quite obvious, but why is this unreachable?
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.
BufferWriter::pipe
was removed, so there is only BufferWriter::stdout
and BufferWriter::stderr
left to create a BufferWriter
and both of those can't have the Pipe Target.
Ping @mainrs. |
Ping @mainrs |
I don't like the extra |
Fixes #208
A test would also be nice, so that it hopefully doesn't break again unnoticed. ^^