refactor(hyper): Remove the box_syntax feature gate.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							a62323cafe
						
					
				
				
					commit
					dbee6af8df
				
			| @@ -355,20 +355,20 @@ mod tests { | ||||
|     #[test] | ||||
|     fn test_downcast_box_stream() { | ||||
|         // FIXME: Use Type ascription | ||||
|         let stream: Box<NetworkStream + Send> = box MockStream::new(); | ||||
|         let stream: Box<NetworkStream + Send> = Box::new(MockStream::new()); | ||||
|  | ||||
|         let mock = stream.downcast::<MockStream>().ok().unwrap(); | ||||
|         assert_eq!(mock, box MockStream::new()); | ||||
|         assert_eq!(mock, Box::new(MockStream::new())); | ||||
|  | ||||
|     } | ||||
|  | ||||
|     #[test] | ||||
|     fn test_downcast_unchecked_box_stream() { | ||||
|         // FIXME: Use Type ascription | ||||
|         let stream: Box<NetworkStream + Send> = box MockStream::new(); | ||||
|         let stream: Box<NetworkStream + Send> = Box::new(MockStream::new()); | ||||
|  | ||||
|         let mock = unsafe { stream.downcast_unchecked::<MockStream>() }; | ||||
|         assert_eq!(mock, box MockStream::new()); | ||||
|         assert_eq!(mock, Box::new(MockStream::new())); | ||||
|  | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user