clipcat: 0.21.1 -> 0.24.0
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
diff --git a/crates/server/src/notification/dummy.rs b/crates/server/src/notification/dummy.rs
|
||||
index f85dda0..7489f22 100644
|
||||
--- a/crates/server/src/notification/dummy.rs
|
||||
+++ b/crates/server/src/notification/dummy.rs
|
||||
@@ -1,6 +1,9 @@
|
||||
+#[cfg(test)]
|
||||
use crate::notification::traits;
|
||||
|
||||
+#[cfg(test)]
|
||||
#[derive(Clone, Copy, Debug, Default)]
|
||||
pub struct Notification {}
|
||||
|
||||
+#[cfg(test)]
|
||||
impl traits::Notification for Notification {}
|
||||
@@ -10,24 +10,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "clipcat";
|
||||
version = "0.21.1";
|
||||
version = "0.24.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xrelkd";
|
||||
repo = "clipcat";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-MYWkUb9v8hnW6gUTpIcz0+jhlc8y3hZxsEQxRIZVVxI=";
|
||||
hash = "sha256-EEM2gwr5j3umpZqHnxCO81EZbLQ3nYGcxb6DBJ7AbC8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-7ntsq6x/8QFaU6Hl4tk+Rtvc8ttcK9Mp00nlirNlUKY=";
|
||||
|
||||
patches = [
|
||||
# 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
|
||||
];
|
||||
cargoHash = "sha256-6fS/LnfNi3rH4H61GCdLp6pnfGPIXJiY2dAwKdK5ofk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
protobuf
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user