make clippy happy

This commit is contained in:
Victor Brekenfeld 2020-06-07 15:29:37 +02:00
parent 3c048075f4
commit cc67764c23
2 changed files with 2 additions and 2 deletions

View File

@ -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
});

View File

@ -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();