clipcat: fix build

This commit is contained in:
aleksana
2025-11-15 21:12:37 +08:00
parent b4799c4e2a
commit f492b0d4fd
2 changed files with 24 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ rustPlatform.buildRustPackage rec {
# Fix compilation errors caused by stricter restrictions on unused code in Rust 1.89.
# TODO: remove this patch after upstream fix it.
./dummy.patch
# https://github.com/xrelkd/clipcat/pull/871
./remove_unnecessary_parenthesis.patch
];
nativeBuildInputs = [
@@ -0,0 +1,22 @@
From 76e3ce46eb930dbc51c3e7aeb832a9db6194fd34 Mon Sep 17 00:00:00 2001
From: sandroid <sandroid@posteo.net>
Date: Sun, 9 Nov 2025 22:12:03 +0100
Subject: [PATCH] fix(crates/server): remove unnecessary parentheses
---
crates/server/src/snippets/mod.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/server/src/snippets/mod.rs b/crates/server/src/snippets/mod.rs
index 00759b1e..8a43c326 100644
--- a/crates/server/src/snippets/mod.rs
+++ b/crates/server/src/snippets/mod.rs
@@ -39,7 +39,7 @@ async fn load(config: &config::SnippetConfig) -> HashMap<ClipEntry, Option<PathB
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()