Skip to content

Commit 5b0c627

Browse files
authored
Delete identity conversion in format_description::parse_owned (#671)
1 parent 7ce6e19 commit 5b0c627

File tree

1 file changed

+1
-3
lines changed
  • time/src/format_description/parse

1 file changed

+1
-3
lines changed

time/src/format_description/parse/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ pub fn parse_owned<const VERSION: usize>(
8080
let mut lexed = lexer::lex::<VERSION>(s.as_bytes());
8181
let ast = ast::parse::<_, VERSION>(&mut lexed);
8282
let format_items = format_item::parse(ast);
83-
let items = format_items
84-
.map(|res| res.map(Into::into))
85-
.collect::<Result<Box<_>, _>>()?;
83+
let items = format_items.collect::<Result<Box<_>, _>>()?;
8684
Ok(items.into())
8785
}
8886

0 commit comments

Comments
 (0)