Skip to content

Commit a6a7b12

Browse files
committed
tee: drop unnecessary impl
1 parent 8cc048b commit a6a7b12

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/uu/tee/src/tee.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ impl MultiWriter {
197197
let mode = self.output_error_mode;
198198
self.writers.retain_mut(|writer| {
199199
let res = (|| {
200-
writer.write_all(buf)?;
201-
writer.flush()
200+
writer.inner.write_all(buf)?;
201+
writer.inner.flush()
202202
})();
203203
match res {
204204
Ok(()) => true,
@@ -274,16 +274,6 @@ struct NamedWriter {
274274
pub name: OsString,
275275
}
276276

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-
287277
struct NamedReader {
288278
inner: std::io::Stdin,
289279
}

0 commit comments

Comments
 (0)