Mark 'Clipboard::new' as 'unsafe'
Since this call takes raw pointer it's generally unsafe.
This commit is contained in:
parent
eef2ca9f2e
commit
0577a468c3
4 changed files with 15 additions and 8 deletions
|
|
@ -172,7 +172,7 @@ fn main() {
|
|||
|
||||
sctk::WaylandSource::new(queue).quick_insert(event_loop.handle()).unwrap();
|
||||
|
||||
let clipboard = Clipboard::new(display.get_display_ptr() as *mut _);
|
||||
let clipboard = unsafe { Clipboard::new(display.get_display_ptr() as *mut _) };
|
||||
let mut dispatch_data = DispatchData::new(clipboard);
|
||||
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue