From 89986d8268ddb1668475e8d3653cf05278a840ec Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 31 Jan 2024 18:12:37 +0100 Subject: [PATCH] app-list: clippy fixes --- cosmic-app-list/src/wayland_handler.rs | 3 --- cosmic-app-list/src/wayland_subscription.rs | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cosmic-app-list/src/wayland_handler.rs b/cosmic-app-list/src/wayland_handler.rs index 0a05f6a8..5f80861d 100644 --- a/cosmic-app-list/src/wayland_handler.rs +++ b/cosmic-app-list/src/wayland_handler.rs @@ -215,9 +215,6 @@ pub(crate) fn wayland_handler( let manager = &state.toplevel_manager_state.manager; manager.close(&handle); } - ToplevelRequest::Exit => { - state.exit = true; - } }, WaylandRequest::TokenRequest { app_id, diff --git a/cosmic-app-list/src/wayland_subscription.rs b/cosmic-app-list/src/wayland_subscription.rs index c5658db4..c9f13d79 100644 --- a/cosmic-app-list/src/wayland_subscription.rs +++ b/cosmic-app-list/src/wayland_subscription.rs @@ -12,7 +12,7 @@ use futures::{ SinkExt, StreamExt, }; use once_cell::sync::Lazy; -use std::{fmt::Debug, hash::Hash, thread::JoinHandle}; +use std::fmt::Debug; use tokio::sync::Mutex; use crate::wayland_handler::wayland_handler; @@ -107,5 +107,4 @@ pub enum WaylandRequest { pub enum ToplevelRequest { Activate(ZcosmicToplevelHandleV1), Quit(ZcosmicToplevelHandleV1), - Exit, }