From 07eb2c1280708c6e9ec6f5a4e4aacb84d7e8b4b5 Mon Sep 17 00:00:00 2001 From: Fenhl Date: Sat, 14 Dec 2019 17:43:22 +0000 Subject: [PATCH] Make WriteFmtFuture must_use Fixes #627. Thanks to @jebrosen for pointing out the location of the issue. --- src/io/write/write_fmt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io/write/write_fmt.rs b/src/io/write/write_fmt.rs index ec7847f..d20c41d 100644 --- a/src/io/write/write_fmt.rs +++ b/src/io/write/write_fmt.rs @@ -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>>,