5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2024-12-22 21:33:50 +03:00
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-03-31 13:52:09 +02:00
parent e827b69a60
commit eae6dc06af

View File

@ -84,9 +84,7 @@ async fn seq_write<T: SeqWrite + ?Sized>(
}
/// awaitable version of 'poll_flush'.
async fn flush<T: SeqWrite + ?Sized>(
output: &mut T,
) -> io::Result<()> {
async fn flush<T: SeqWrite + ?Sized>(output: &mut T) -> io::Result<()> {
poll_fn(|cx| unsafe { Pin::new_unchecked(&mut *output).poll_flush(cx) }).await
}