diff options
| author | Mikael Urankar <mikael@FreeBSD.org> | 2025-09-27 08:16:09 +0000 |
|---|---|---|
| committer | Mikael Urankar <mikael@FreeBSD.org> | 2025-10-03 08:16:49 +0000 |
| commit | 02e680f0a104c662e9eedd8d53df1ba037a7c37b (patch) | |
| tree | c1672eba88f52ef9cfdc36a0eb50ec3b3f766acb | |
| parent | f95ff147bccf89d3bbc380a608c6199c013d7df6 (diff) | |
x11/clipcat: fix build with rust 1.90.0
error: unnecessary parentheses around closure body
--> crates/server/src/snippets/mod.rs:42:33
|
42 | .map(|file| (async move { (tokio::fs::read(&file).await.ok(), file) })),
| ^ ^
|
= note: requested on the command line with `-D unused-parens`
help: remove these parentheses
|
42 - .map(|file| (async move { (tokio::fs::read(&file).await.ok(), file) })),
42 + .map(|file| async move { (tokio::fs::read(&file).await.ok(), file) }),
PR: 289709
Approved by: portmgr (build fix blanket)
| -rw-r--r-- | x11/clipcat/files/patch-rust-1.90.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/clipcat/files/patch-rust-1.90.0 b/x11/clipcat/files/patch-rust-1.90.0 new file mode 100644 index 000000000000..09ee0b313caf --- /dev/null +++ b/x11/clipcat/files/patch-rust-1.90.0 @@ -0,0 +1,11 @@ +--- crates/server/src/snippets/mod.rs.orig 2025-09-27 10:08:20 UTC ++++ crates/server/src/snippets/mod.rs +@@ -39,7 +39,7 @@ async fn load(config: &config::SnippetConfig) -> HashM + clipcat_base::utils::fs::read_dir_recursively_async(&path) + .await + .into_iter() +- .map(|file| (async move { (tokio::fs::read(&file).await.ok(), file) })), ++ .map(|file| async move { (tokio::fs::read(&file).await.ok(), file) }), + ) + .await + .into_iter() |
