Fixed build fail with async feature.

Fortune for chacha20stream's current commit: Small curse − 小凶
master
Avril 3 years ago
parent 903bfcd7c4
commit d76b77fbf1
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,6 +1,6 @@
[package]
name = "chacha20stream"
version = "2.2.0"
version = "2.2.1"
keywords = ["chacha20_poly1305", "stream", "wrapper", "encryption", "decryption"]
description = "A writable wrapper stream for encryption and decryption with the stream cipher chacha20_poly1305"
homepage = "https://git.flanchan.moe/flanchan/chacha20stream"

@ -114,9 +114,7 @@ impl<W: AsyncWrite> Sink<W>
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: W, crypter: Crypter) -> Self
{
Self {
stream, crypter
}
Self::new(stream, crypter)
}
/// The crypter of this instance

@ -79,9 +79,7 @@ impl<R: AsyncRead> Source<R>
/// The counterpart to `into_parts()`.
#[inline] pub fn from_parts(stream: R, crypter: Crypter) -> Self
{
Self {
stream, crypter
}
Self::new(stream, crypter)
}

Loading…
Cancel
Save