diff --git a/anvil/src/state.rs b/anvil/src/state.rs index 0ee6433..671601b 100644 --- a/anvil/src/state.rs +++ b/anvil/src/state.rs @@ -138,7 +138,7 @@ impl AnvilState { let cursor_status = Arc::new(Mutex::new(CursorImageStatus::Default)); let cursor_status2 = cursor_status.clone(); - let pointer = seat.add_pointer(shell_handles.token.clone(), move |new_status| { + let pointer = seat.add_pointer(shell_handles.token, move |new_status| { // TODO: hide winit system cursor when relevant *cursor_status2.lock().unwrap() = new_status }); diff --git a/src/backend/egl/ffi.rs b/src/backend/egl/ffi.rs index 3918d8f..3687347 100644 --- a/src/backend/egl/ffi.rs +++ b/src/backend/egl/ffi.rs @@ -49,7 +49,7 @@ pub mod egl { use std::sync::Once; lazy_static! { - pub static ref LIB: Library = { Library::new("libEGL.so.1").expect("Failed to load LibEGL") }; + pub static ref LIB: Library = Library::new("libEGL.so.1").expect("Failed to load LibEGL"); } pub static LOAD: Once = Once::new();