mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-06 02:26:34 +00:00
16 lines
550 B
Diff
16 lines
550 B
Diff
https://github.com/time-rs/time/pull/671
|
|
|
|
--- a/src/format_description/parse/mod.rs
|
|
+++ b/src/format_description/parse/mod.rs
|
|
@@ -80,9 +80,7 @@ pub fn parse_owned<const VERSION: usize>(
|
|
let mut lexed = lexer::lex::<VERSION>(s.as_bytes());
|
|
let ast = ast::parse::<_, VERSION>(&mut lexed);
|
|
let format_items = format_item::parse(ast);
|
|
- let items = format_items
|
|
- .map(|res| res.map(Into::into))
|
|
- .collect::<Result<Box<_>, _>>()?;
|
|
+ let items = format_items.collect::<Result<Box<_>, _>>()?;
|
|
Ok(items.into())
|
|
}
|
|
|