Format code
This commit is contained in:
parent
37bd79039f
commit
dcdae3ad2d
|
@ -72,8 +72,7 @@ impl super::ClipboardManager for MacClipboardManager {
|
|||
let text_fallback =
|
||||
html2text::from_read_with_decorator(html.as_bytes(), 1000000, decorator);
|
||||
unsafe {
|
||||
let payload_c =
|
||||
CString::new(html).expect("unable to create CString for html content");
|
||||
let payload_c = CString::new(html).expect("unable to create CString for html content");
|
||||
let payload_fallback_c = CString::new(text_fallback).unwrap();
|
||||
set_clipboard_html(payload_c.as_ptr(), payload_fallback_c.as_ptr());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user