Merge pull request #527 from vojd/fix/remove-leftovers

This commit is contained in:
Jonathan Spira 2021-09-17 10:00:53 -04:00 committed by GitHub
commit ebfe0d3af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,14 +64,9 @@ impl fmt::Debug for ClipboardContext {
pub(crate) unsafe extern "C" fn get_clipboard_text(user_data: *mut c_void) -> *const c_char {
let result = catch_unwind(|| {
println!("gettin!");
let ctx = &mut *(user_data as *mut ClipboardContext);
println!("gettin!");
match ctx.backend.get() {
Some(text) => {
println!("gettin!");
ctx.last_value = CString::new(text).unwrap();
ctx.last_value.as_ptr()
}