mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +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 {
|
impl Write for MultiWriter {
|
||||||
fn write(&mut self, buf: &[u8]) -> Result<usize> {
|
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);
|
let result = writer.write_all(buf);
|
||||||
match result {
|
match result {
|
||||||
Err(f) => {
|
Err(f) => {
|
||||||
|
@ -178,7 +178,7 @@ impl Write for MultiWriter {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn flush(&mut self) -> Result<()> {
|
fn flush(&mut self) -> Result<()> {
|
||||||
self.writers.retain_mut(|writer| {
|
RetainMut::retain_mut(&mut self.writers, |writer| {
|
||||||
let result = writer.flush();
|
let result = writer.flush();
|
||||||
match result {
|
match result {
|
||||||
Err(f) => {
|
Err(f) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue