(&mut self, data: String)
| 212 | pub(crate) fn clipboard_read(&self) -> Option<String> { |
| 213 | let Some(clipboard) = &self.clipboard else { |
| 214 | tracing::error!("Clipboard not available"); |
| 215 | return None; |
| 216 | }; |
| 217 | match clipboard.read() { |
| 218 | Ok(data) => Some(data), |
| 219 | Err(e) => { |
| 220 | tracing::error!("Failed to read from clipboard: {e}"); |
| 221 | None |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 |
no test coverage detected