Skip to content

Commit

Permalink
fix use_clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 26, 2024
1 parent 137b414 commit cde6452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/clipboard/use_clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl UseClipboard {
// Read from the clipboard
pub fn get(&self) -> Result<String, ClipboardError> {
self.clipboard
.read()
.write()
.get_contents()
.map_err(|_| ClipboardError::FailedToRead)
}
Expand Down

0 comments on commit cde6452

Please sign in to comment.