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

@@ -85,7 +85,7 @@ impl Item {
fn parse<H: Header + HeaderFormat>(raw: &Vec<Vec<u8>>) -> Option<Box<HeaderFormat + Send + Sync>> {
Header::parse_header(&raw[..]).map(|h: H| {
// FIXME: Use Type ascription
let h: Box<HeaderFormat + Send + Sync> = box h;
let h: Box<HeaderFormat + Send + Sync> = Box::new(h);
h
})
}