on master help sign in
fix warnings
commitb63afbe74cb39ff0e3ca7e46b6bc5e53f7d4e3b7 authorShafkath Shuhan <shafkathshuhannyc@gmail.com> dateWed 18 Aug 2021, 13:28 (5 years ago) parent098b6b6
1 file changed+3−1
helix-view/src/clipboard.rs+3−1
helix-view/src/clipboard.rs+3−1
@@ -152,6 +152,8 @@ mod provider {
152152 }
153153
154154 impl NopProvider {
155+ #[allow(dead_code)]
156+ // Only dead_code on Windows.
155157 pub fn new() -> Self {
156158 Self {
157159 buf: String::new(),
@@ -217,7 +219,7 @@ mod provider {
217219 fn set_contents(&mut self, contents: String, clipboard_type: ClipboardType) -> Result<()> {
218220 match clipboard_type {
219221 ClipboardType::Clipboard => {
220− clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents);
222+ clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents)?;
221223 }
222224 ClipboardType::Selection => {}
223225 };