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.
1 parent 8cc048b commit a6a7b12Copy full SHA for a6a7b12
1 file changed
src/uu/tee/src/tee.rs
@@ -197,8 +197,8 @@ impl MultiWriter {
197
let mode = self.output_error_mode;
198
self.writers.retain_mut(|writer| {
199
let res = (|| {
200
- writer.write_all(buf)?;
201
- writer.flush()
+ writer.inner.write_all(buf)?;
+ writer.inner.flush()
202
})();
203
match res {
204
Ok(()) => true,
@@ -274,16 +274,6 @@ struct NamedWriter {
274
pub name: OsString,
275
}
276
277
-impl Write for NamedWriter {
278
- fn write(&mut self, buf: &[u8]) -> Result<usize> {
279
- self.inner.write(buf)
280
- }
281
-
282
- fn flush(&mut self) -> Result<()> {
283
- self.inner.flush()
284
285
-}
286
287
struct NamedReader {
288
inner: std::io::Stdin,
289
0 commit comments