refactor(hyper): Remove the box_syntax feature gate.

This commit is contained in:
Jonathan Reem
2015-03-23 13:29:17 -07:00
committed by Sean McArthur
parent a62323cafe
commit dbee6af8df
5 changed files with 13 additions and 14 deletions

View File

@@ -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()));
}