diff --git a/Cargo.toml b/Cargo.toml index 3378550..3d25ab9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "MIT" keywords = ["clipboard", "wayland"] [dependencies] -sctk = { package = "smithay-client-toolkit", version = "0.5" } +sctk = { package = "smithay-client-toolkit", version = "0.6.1" } nix = "0.13.0" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 3effa74..a2fefd1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ //! Provides access to the wayland clipboard with only requirement being a WlDisplay //! object //! -//! ```no_run +//! ```norun //! let (display, _) = //! Display::connect_to_env().expect("Failed to connect to the wayland server."); //! let mut clipboard = smithay_clipboard::WaylandClipboard::new(&display); diff --git a/src/threaded.rs b/src/threaded.rs index 13bb102..73fa813 100644 --- a/src/threaded.rs +++ b/src/threaded.rs @@ -118,9 +118,12 @@ impl ThreadedClipboard { /// focus to work. Otherwise if no seat name is provided /// the name of the seat to last generate a key or pointer event /// is used - pub fn store(&mut self, seat_name: Option, text: String) { + pub fn store(&mut self, seat_name: Option, text: T) + where + T: Into, + { self.request_send - .send(ThreadRequest::Store(seat_name, text)) + .send(ThreadRequest::Store(seat_name, text.into())) .unwrap() }