We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ce6e19 commit 5b0c627Copy full SHA for 5b0c627
time/src/format_description/parse/mod.rs
@@ -80,9 +80,7 @@ pub fn parse_owned<const VERSION: usize>(
80
let mut lexed = lexer::lex::<VERSION>(s.as_bytes());
81
let ast = ast::parse::<_, VERSION>(&mut lexed);
82
let format_items = format_item::parse(ast);
83
- let items = format_items
84
- .map(|res| res.map(Into::into))
85
- .collect::<Result<Box<_>, _>>()?;
+ let items = format_items.collect::<Result<Box<_>, _>>()?;
86
Ok(items.into())
87
}
88
0 commit comments