mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Merge pull request #527 from vojd/fix/remove-leftovers
This commit is contained in:
commit
ebfe0d3af4
@ -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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user