diff --git a/time/src/format_description/parse/mod.rs b/time/src/format_description/parse/mod.rs index 602ecf71f..c4cd1474b 100644 --- a/time/src/format_description/parse/mod.rs +++ b/time/src/format_description/parse/mod.rs @@ -80,7 +80,7 @@ pub fn parse_owned( let mut lexed = lexer::lex::(s.as_bytes()); let ast = ast::parse::<_, VERSION>(&mut lexed); let format_items = format_item::parse(ast); - let items = format_items.collect::, _>>()?; + let items: Box<_> = format_items.collect::, _>>()?; Ok(items.into()) }