a simple clipboard for complicated times
-rw-r--r--Cargo.toml4
-rw-r--r--LICENSE2
-rw-r--r--src/providers.rs7
3 files changed, 7 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 84776c6..04e8786 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "clipp"
-version = "0.1.0"
-edition = "2021"
+version = "0.1.1"
+edition = "2024"
repository = "https://github.com/bend-n/clipp"
description = "clipboard, simple."
keywords = ["clipboard"]
diff --git a/LICENSE b/LICENSE
index 1fafc15..bf3f588 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2023 bendn
+Copyright (c) 2025 bendn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/src/providers.rs b/src/providers.rs
index 5c9c586..558a870 100644
--- a/src/providers.rs
+++ b/src/providers.rs
@@ -100,15 +100,15 @@ impl Clipboard for Wayland {
fn copy(text: &str) {
match text {
"" => assert!(
- c!("wl-copy" "-p" "--clear").status().unwrap().success(),
+ c!("wl-copy" "--clear").status().unwrap().success(),
"wl-copy fail"
),
- s => c!("wl-copy" "-p").put(s),
+ s => c!("wl-copy").put(s),
}
}
fn paste() -> String {
- c!("wl-paste" "-n" "-p").eat()
+ c!("wl-paste" "-n").eat()
}
}
@@ -156,6 +156,7 @@ impl Clipboard for Wsl {
pub type Board = (for<'a> fn(&'a str), fn() -> String);
fn get<T: Clipboard>() -> Board {
+ println!("{}", std::any::type_name::<T>());
(T::copy, T::paste)
}