forked from mirror/async-std
		
	Make WriteFmtFuture must_use
Fixes #627. Thanks to @jebrosen for pointing out the location of the issue.
This commit is contained in:
		
							parent
							
								
									83a488b290
								
							
						
					
					
						commit
						07eb2c1280
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -6,6 +6,7 @@ use crate::task::{Context, Poll}; | ||||||
| 
 | 
 | ||||||
| #[doc(hidden)] | #[doc(hidden)] | ||||||
| #[allow(missing_debug_implementations)] | #[allow(missing_debug_implementations)] | ||||||
|  | #[must_use] | ||||||
| pub struct WriteFmtFuture<'a, T: Unpin + ?Sized> { | pub struct WriteFmtFuture<'a, T: Unpin + ?Sized> { | ||||||
|     pub(crate) writer: &'a mut T, |     pub(crate) writer: &'a mut T, | ||||||
|     pub(crate) res: Option<io::Result<Vec<u8>>>, |     pub(crate) res: Option<io::Result<Vec<u8>>>, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue