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