diff options
Diffstat (limited to 'copypasta/src/lib.rs')
-rw-r--r-- | copypasta/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/copypasta/src/lib.rs b/copypasta/src/lib.rs index 9fe354f6..b498e2e9 100644 --- a/copypasta/src/lib.rs +++ b/copypasta/src/lib.rs @@ -32,10 +32,12 @@ pub trait Load : Sized { /// order to load the contents from other applications. pub trait Store : Load { /// Sets the primary clipboard contents - fn store_primary(&mut self, contents: String) -> Result<(), Self::Err>; + fn store_primary<S>(&mut self, contents: S) -> Result<(), Self::Err> + where S: Into<String>; /// Sets the secondary clipboard contents - fn store_selection(&mut self, contents: String) -> Result<(), Self::Err>; + fn store_selection<S>(&mut self, contents: S) -> Result<(), Self::Err> + where S: Into<String>; } #[cfg(target_os = "linux")] |