a simple clipboard for complicated times
Diffstat (limited to 'src/providers.rs')
| -rw-r--r-- | src/providers.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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) } |