Skip to content

Commit

Permalink
fix: warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <ryanbrue@gmail.com>
  • Loading branch information
ryanabx committed Aug 13, 2024
1 parent 6a6fc56 commit 0010f9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/compositor/cosmic_comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use iced::{
use once_cell::sync::Lazy;

struct WaylandData {
conn: Connection,
_conn: Connection,
queue_handle: QueueHandle<Self>,
output_state: OutputState,
workspace_state: WorkspaceState,
Expand Down Expand Up @@ -375,7 +375,7 @@ fn wayland_handler(tx: UnboundedSender<CosmicWaylandMessage>, rx: Channel<Waylan
let mut app_data = WaylandData {
exit: false,
tx,
conn,
_conn: conn,
queue_handle: qh.clone(),
output_state: OutputState::new(&globals, &qh),
workspace_state: WorkspaceState::new(&registry_state, &qh),
Expand Down
5 changes: 1 addition & 4 deletions src/compositor/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use std::{
env,
ffi::{OsStr, OsString},
};
use std::env;

pub mod cosmic_comp;
pub mod wlr;
Expand Down
20 changes: 6 additions & 14 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
use app_tray::AppTray;
use cctk::wayland_client::protocol::wl_seat::WlSeat;
use compositor::{
cosmic_comp::{CosmicWaylandMessage, WaylandRequest},
WaylandMessage,
};
use compositor::WaylandMessage;
use config::{AppTrayApp, PanelConfig};
use iced::{
application::{
actions::layer_surface::SctkLayerSurfaceSettings, layer_surface::Anchor, InitialSurface,
},
event::{self, listen_with},
widget::{
column,
container::{self, Style},
row, Row,
},
Application, Background, Border, Color, Command, Element, Length, Radius, Settings,
Subscription, Theme,
widget::{column, container::Style},
Application, Background, Color, Command, Element, Radius, Settings, Subscription, Theme,
};

mod app_tray;
Expand Down Expand Up @@ -67,11 +59,11 @@ impl<'a> Application for Panel<'a> {
type Renderer = iced::Renderer;
type Flags = ();

fn new(flags: Self::Flags) -> (Self, iced::Command<Self::Message>) {
fn new(_flags: Self::Flags) -> (Self, iced::Command<Self::Message>) {
(Panel::default(), Command::<self::Message>::none())
}

fn title(&self, id: iced::window::Id) -> String {
fn title(&self, _id: iced::window::Id) -> String {
"Window".into()
}

Expand All @@ -95,7 +87,7 @@ impl<'a> Application for Panel<'a> {

fn view(
&self,
id: iced::window::Id,
_id: iced::window::Id,
) -> iced::Element<'_, Self::Message, Self::Theme, Self::Renderer> {
let favorites_images = self
.panel_config
Expand Down

0 comments on commit 0010f9d

Please sign in to comment.