mirror of
git://git.proxmox.com/git/pxar.git
synced 2024-12-22 21:33:50 +03:00
rustfmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e827b69a60
commit
eae6dc06af
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user