2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-04-02 14:36:40 +00:00

Make WriteFmtFuture must_use

Fixes #627. Thanks to @jebrosen for pointing out the location of the issue.
This commit is contained in:
Fenhl 2019-12-14 17:43:22 +00:00 committed by GitHub
parent 83a488b290
commit 07eb2c1280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ use crate::task::{Context, Poll};
#[doc(hidden)]
#[allow(missing_debug_implementations)]
#[must_use]
pub struct WriteFmtFuture<'a, T: Unpin + ?Sized> {
pub(crate) writer: &'a mut T,
pub(crate) res: Option<io::Result<Vec<u8>>>,