mirror of https://github.com/helix-editor/helix
fix warnings
parent
098b6b6eed
commit
b63afbe74c
|
@ -152,6 +152,8 @@ mod provider {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl NopProvider {
|
impl NopProvider {
|
||||||
|
#[allow(dead_code)]
|
||||||
|
// Only dead_code on Windows.
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
buf: String::new(),
|
buf: String::new(),
|
||||||
|
@ -217,7 +219,7 @@ mod provider {
|
||||||
fn set_contents(&mut self, contents: String, clipboard_type: ClipboardType) -> Result<()> {
|
fn set_contents(&mut self, contents: String, clipboard_type: ClipboardType) -> Result<()> {
|
||||||
match clipboard_type {
|
match clipboard_type {
|
||||||
ClipboardType::Clipboard => {
|
ClipboardType::Clipboard => {
|
||||||
clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents);
|
clipboard_win::set_clipboard(clipboard_win::formats::Unicode, contents)?;
|
||||||
}
|
}
|
||||||
ClipboardType::Selection => {}
|
ClipboardType::Selection => {}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue