aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2024-08-23 15:38:51 +0000
committerMikael Urankar <mikael@FreeBSD.org>2024-08-26 08:07:47 +0000
commitc7771e2928c14523d555e911295051f111a1571e (patch)
treebb6117540a3e53a8db6c68c42ced6f8bdd0b6ff4
parent3ac1b656f3aba2342662c606a0e87568835eeb61 (diff)
downloadports-c7771e2928c14523d555e911295051f111a1571e.tar.gz
ports-c7771e2928c14523d555e911295051f111a1571e.zip
net/wstunnel: Fix build with rust 1.80.0
PR: 280490
-rw-r--r--net/wstunnel/files/patch-rust-1.80.025
1 files changed, 25 insertions, 0 deletions
diff --git a/net/wstunnel/files/patch-rust-1.80.0 b/net/wstunnel/files/patch-rust-1.80.0
new file mode 100644
index 000000000000..d376fb38b477
--- /dev/null
+++ b/net/wstunnel/files/patch-rust-1.80.0
@@ -0,0 +1,25 @@
+From 5b0c627366babea1636b35db641c0fec964ddbd1 Mon Sep 17 00:00:00 2001
+From: David Tolnay <dtolnay@gmail.com>
+Date: Fri, 15 Mar 2024 20:47:22 -0700
+Subject: [PATCH] Delete identity conversion in format_description::parse_owned
+ (#671)
+
+---
+ time/src/format_description/parse/mod.rs | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/time/src/format_description/parse/mod.rs b/time/src/format_description/parse/mod.rs
+index 1fcc577c9..22ca52591 100644
+--- cargo-crates/time-0.3.31/src/format_description/parse/mod.rs
++++ cargo-crates/time-0.3.31/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())
+ }
+