mirror of
git://git.proxmox.com/git/pxar.git
synced 2025-02-03 21:47:00 +03:00
fix async Encoder::create
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
327e33f21b
commit
a889559e32
@ -49,7 +49,7 @@ impl<'a, T: tokio::io::AsyncWrite + 'a> Encoder<'a, TokioWriter<T>> {
|
||||
#[cfg(feature = "tokio-fs")]
|
||||
impl<'a> Encoder<'a, TokioWriter<tokio::fs::File>> {
|
||||
/// Convenience shortcut for `File::create` followed by `Encoder::from_tokio`.
|
||||
pub fn create<'b, P: AsRef<Path>>(
|
||||
pub async fn create<'b, P: AsRef<Path>>(
|
||||
path: P,
|
||||
metadata: &'b Metadata,
|
||||
) -> io::Result<Encoder<'a, TokioWriter<tokio::fs::File>>> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user