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:
parent
790884b177
commit
7e06ddaa92
1 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue