aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorShafkath Shuhan2021-08-18 17:28:18 +0000
committerNathan Vegdahl2021-08-18 18:45:01 +0000
commitb63afbe74cb39ff0e3ca7e46b6bc5e53f7d4e3b7 (patch)
treef44ea8fb237bc0a9a3ec98269709ac9730542e83 /helix-view
parent098b6b6eedf6da8e760b334d61acef56be8d258b (diff)
fix warnings
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/clipboard.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-view/src/clipboard.rs b/helix-view/src/clipboard.rs
index 3778c8d4..9dd86da7 100644
--- a/helix-view/src/clipboard.rs
+++ b/helix-view/src/clipboard.rs
@@ -152,6 +152,8 @@ mod provider {
}
impl NopProvider {
+ #[allow(dead_code)]
+ // Only dead_code on Windows.
pub fn new() -> Self {
Self {
buf: String::new(),
@@ -217,7 +219,7 @@ mod provider {
fn set_contents(&mut self, contents: String, clipboard_type: ClipboardType) -> Result<()> {
match clipboard_type {
ClipboardType::Clipboard => {
- clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents);
+ clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents)?;
}
ClipboardType::Selection => {}
};