Use HasDisplayHandle instead of deprecated HasRawDisplayHandle
Currently `connect` is unsafe because it doesn't take ownership of the display or have a lifetime bound.
This commit is contained in:
parent
bf49c91331
commit
869737dadc
11 changed files with 24 additions and 22 deletions
|
|
@ -13,7 +13,8 @@ fn main() {
|
|||
.build(&event_loop)
|
||||
.unwrap();
|
||||
|
||||
let clipboard = Clipboard::connect(&window).expect("Connect to clipboard");
|
||||
let clipboard =
|
||||
unsafe { Clipboard::connect(&window) }.expect("Connect to clipboard");
|
||||
|
||||
event_loop
|
||||
.run(move |event, elwt| match event {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue