You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at the source for nop_clipboard.rs, and this doesn't seem right:
implClipboardProviderforNopClipboardContext{fnnew() -> Result<NopClipboardContext,Box<Error>>{Ok(NopClipboardContext)}fnget_contents(&mutself) -> Result<String,Box<Error>>{println!("Attempting to get the contents of the clipboard, which hasn't yet been \ implemented on this platform.");Ok("".to_string())}fnset_contents(&mutself, _:String) -> Result<(),Box<Error>>{println!("Attempting to set the contents of the clipboard, which hasn't yet been \ implemented on this platform.");Ok(())}}
Shouldn't this return Err, not Ok? It's kind of a pain to deal with an error condition that indicates success
The text was updated successfully, but these errors were encountered:
I looked at the source for
nop_clipboard.rs
, and this doesn't seem right:Shouldn't this return
Err
, notOk
? It's kind of a pain to deal with an error condition that indicates successThe text was updated successfully, but these errors were encountered: