Mark 'Clipboard::new' as 'unsafe'

Since this call takes raw pointer it's generally unsafe.
This commit is contained in:
Kirill Chibisov 2020-09-30 19:13:15 +03:00 committed by GitHub
parent eef2ca9f2e
commit 0577a468c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 8 deletions

View file

@ -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 {