chore: add rustfmt config

This commit is contained in:
Vukašin Vojinović 2026-04-30 16:07:25 +02:00 committed by Ashley Wulber
parent 9abc4d483b
commit 9c2a86a8f4
98 changed files with 419 additions and 540 deletions

View file

@ -2,14 +2,10 @@
use crate::iced;
use iced::core::alignment::{self, Alignment};
use iced::core::event::{self, Event};
use iced::core::layout;
use iced::core::mouse;
use iced::core::overlay;
use iced::core::renderer;
use iced::core::widget::{Operation, Tree};
use iced::core::{
Clipboard, Element, Layout, Length, Padding, Pixels, Rectangle, Shell, Size, Vector, Widget,
widget,
layout, mouse, overlay, renderer, widget,
};
/// A container that distributes its contents vertically.

View file

@ -1,37 +1,31 @@
#[cfg(feature = "applet-token")]
pub mod token;
use crate::app::{BootData, BootDataInner, cosmic};
use crate::{
Application, Element, Renderer,
app::iced_settings,
cctk::sctk,
theme::{self, Button, THEME, system_dark, system_light},
widget::{
self,
autosize::{self, Autosize, autosize},
column::Column,
layer_container,
row::Row,
space::horizontal,
space::vertical,
},
};
use crate::app::{BootData, BootDataInner, cosmic, iced_settings};
use crate::cctk::sctk;
use crate::theme::{self, Button, THEME, system_dark, system_light};
use crate::widget::autosize::{self, Autosize, autosize};
use crate::widget::column::Column;
use crate::widget::row::Row;
use crate::widget::space::{horizontal, vertical};
use crate::widget::{self, layer_container};
use crate::{Application, Element, Renderer};
pub use cosmic_panel_config;
use cosmic_panel_config::{CosmicPanelBackground, PanelAnchor, PanelSize};
use iced::{
self, Color, Length, Limits, Rectangle,
alignment::{Alignment, Horizontal, Vertical},
widget::Container,
window,
};
use iced::alignment::{Alignment, Horizontal, Vertical};
use iced::widget::Container;
use iced::{self, Color, Length, Limits, Rectangle, window};
use iced_core::{Padding, Shadow};
use iced_runtime::platform_specific::wayland::popup::{SctkPopupSettings, SctkPositioner};
use iced_widget::Text;
use sctk::reexports::protocols::xdg::shell::client::xdg_positioner::{Anchor, Gravity};
use std::borrow::Cow;
use std::cell::RefCell;
use std::{borrow::Cow, num::NonZeroU32, rc::Rc, sync::LazyLock, time::Duration};
use std::num::NonZeroU32;
use std::rc::Rc;
use std::sync::LazyLock;
use std::time::Duration;
use tracing::info;
pub mod column;

View file

@ -3,12 +3,10 @@ use crate::iced;
use iced::core::alignment::{self, Alignment};
use iced::core::event::{self, Event};
use iced::core::layout::{self, Layout};
use iced::core::mouse;
use iced::core::overlay;
use iced::core::renderer;
use iced::core::widget::{Operation, Tree};
use iced::core::{
Clipboard, Element, Length, Padding, Pixels, Rectangle, Shell, Size, Vector, Widget, widget,
Clipboard, Element, Length, Padding, Pixels, Rectangle, Shell, Size, Vector, Widget, mouse,
overlay, renderer, widget,
};
use iced::touch;

View file

@ -1,13 +1,12 @@
use crate::iced;
use cctk::sctk::reexports::calloop;
use futures::{
SinkExt, StreamExt,
channel::mpsc::{UnboundedReceiver, unbounded},
};
use futures::channel::mpsc::{UnboundedReceiver, unbounded};
use futures::{SinkExt, StreamExt};
use iced::Subscription;
use iced_futures::futures;
use iced_futures::stream;
use std::{fmt::Debug, hash::Hash, thread::JoinHandle};
use iced_futures::{futures, stream};
use std::fmt::Debug;
use std::hash::Hash;
use std::thread::JoinHandle;
use super::wayland_handler::wayland_handler;

View file

@ -1,27 +1,20 @@
use std::os::{
fd::{FromRawFd, RawFd},
unix::net::UnixStream,
};
use std::os::fd::{FromRawFd, RawFd};
use std::os::unix::net::UnixStream;
use super::subscription::{TokenRequest, TokenUpdate};
use cctk::{
sctk::{
self,
activation::{RequestData, RequestDataExt},
reexports::{calloop, calloop_wayland_source::WaylandSource},
seat::{SeatHandler, SeatState},
},
wayland_client::{
self,
protocol::{wl_seat::WlSeat, wl_surface::WlSurface},
},
};
use cctk::sctk::activation::{RequestData, RequestDataExt};
use cctk::sctk::reexports::calloop;
use cctk::sctk::reexports::calloop_wayland_source::WaylandSource;
use cctk::sctk::seat::{SeatHandler, SeatState};
use cctk::sctk::{self};
use cctk::wayland_client::protocol::wl_seat::WlSeat;
use cctk::wayland_client::protocol::wl_surface::WlSurface;
use cctk::wayland_client::{self};
use iced_futures::futures::channel::mpsc::UnboundedSender;
use sctk::{
activation::{ActivationHandler, ActivationState},
registry::{ProvidesRegistryState, RegistryState},
};
use wayland_client::{Connection, QueueHandle, globals::registry_queue_init};
use sctk::activation::{ActivationHandler, ActivationState};
use sctk::registry::{ProvidesRegistryState, RegistryState};
use wayland_client::globals::registry_queue_init;
use wayland_client::{Connection, QueueHandle};
struct AppData {
exit: bool,