1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

fix/tee ~ repair 'unstable_name_collisions' compiler warning

This commit is contained in:
Roy Ivy III 2021-11-19 21:39:35 -06:00
parent 790884b177
commit 7e06ddaa92

View file

@ -164,7 +164,7 @@ impl MultiWriter {
impl Write for MultiWriter {
fn write(&mut self, buf: &[u8]) -> Result<usize> {
self.writers.retain_mut(|writer| {
RetainMut::retain_mut(&mut self.writers, |writer| {
let result = writer.write_all(buf);
match result {
Err(f) => {
@ -178,7 +178,7 @@ impl Write for MultiWriter {
}
fn flush(&mut self) -> Result<()> {
self.writers.retain_mut(|writer| {
RetainMut::retain_mut(&mut self.writers, |writer| {
let result = writer.flush();
match result {
Err(f) => {