From fad73dba9f2351177996c352d8385904608535d5 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Sun, 14 May 2023 15:17:46 +0300 Subject: cargo update --- src/protocol.rs | 2 -- src/state.rs | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/protocol.rs b/src/protocol.rs index e8f464e..8e9a217 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -1,5 +1,3 @@ -#![allow(clippy::enum_variant_names)] - use wayrs_client; pub use wayrs_client::protocol::*; pub use wayrs_protocols::fractional_scale_v1::*; diff --git a/src/state.rs b/src/state.rs index b9a5ac1..de99179 100644 --- a/src/state.rs +++ b/src/state.rs @@ -61,8 +61,6 @@ impl State { conn.add_registry_cb(wl_registry_cb); - let wl_shm = globals.bind(conn, 1..=1).expect("could not bind wl_shm"); - let cursor_theme = CursorTheme::new(None, None); let default_cursor = cursor_theme .get_image("default") @@ -82,7 +80,7 @@ impl State { bars: Vec::new(), shared_state: SharedState { - shm: ShmAlloc::new(wl_shm), + shm: ShmAlloc::bind(conn, globals).unwrap(), config, status_cmd, blocks_cache: BlocksCache::default(), -- cgit v1.3.1