Implement EphemeralFile flush in a least dangerous way

This commit is contained in:
Kirill Bulatov
2022-02-05 16:13:47 -05:00
committed by Kirill Bulatov
parent cb1d84d980
commit b67cddb303

View File

@@ -175,7 +175,10 @@ impl Write for EphemeralFile {
}
fn flush(&mut self) -> Result<(), std::io::Error> {
todo!()
// we don't need to flush data:
// * we either write input bytes or not, not keeping any intermediate data buffered
// * rust unix file `flush` impl does not flush things either, returning `Ok(())`
Ok(())
}
}