Skip to content

Commit

Permalink
chore: clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Apr 18, 2024
1 parent 0cd8a2a commit 2fecf42
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ use std::process::exit;
use iced::alignment::{Horizontal, Vertical};
use iced::futures::channel::mpsc::{Sender, TrySendError};
use iced::widget::{column, container, scrollable, text_input, Column, Container, Row, Text};
use iced::{window, Application, Command, Element, Length, Settings, Subscription, event};
use iced_core::widget::operation::scrollable::RelativeOffset;
use iced_core::{Event, Font, Pixels, Size};
use iced_core::keyboard::Key;
use iced::{event, window, Application, Command, Element, Length, Settings, Subscription};
use iced_core::keyboard::key::Named;
use iced_core::keyboard::Key;
use iced_core::widget::operation::scrollable::RelativeOffset;
use iced_core::window::settings::PlatformSpecific;
use iced_core::{Event, Font, Pixels, Size};
use iced_style::Theme;
use onagre_launcher_toolkit::launcher::{Request, Response};
use once_cell::sync::Lazy;
Expand Down Expand Up @@ -631,12 +631,12 @@ impl Onagre<'_> {

fn keyboard_event() -> Subscription<Message> {
event::listen_with(|event, _status| match event {
Event::Window(_, event) if event == window::Event::Unfocused => Some(Message::Unfocused),
Event::Window(_, window::Event::Unfocused) => Some(Message::Unfocused),
Event::Keyboard(iced::keyboard::Event::KeyPressed {
modifiers: _,
text: _,
key,
location: _
location: _,
}) => Some(Message::KeyboardEvent(key)),
_ => None,
})
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::app::style::search::SearchContainerStyles;
use crate::app::style::Scale;
use crate::config::color::OnagreColor;
use crate::config::padding::OnagrePadding;
use iced_core::{Background, Border};
use iced_core::border::Radius;
use iced_core::{Background, Border};
use iced_style::container::{Appearance, StyleSheet};

// The top level container wrapping the app
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use crate::THEME_PATH;
use crate::THEME_SCALE;
use iced::widget::container::Appearance;
use iced::Background;
use iced_core::{Border, Length};
use iced_core::border::Radius;
use iced_core::{Border, Length};
use tracing::{error, warn};

pub mod app;
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/rows/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::config::color::OnagreColor;
use crate::config::padding::OnagrePadding;
use iced::alignment::{Horizontal, Vertical};
use iced::Length;
use iced_core::{Background, Border};
use iced_core::border::Radius;
use iced_core::{Background, Border};
use iced_style::container::{Appearance, StyleSheet};

#[derive(Debug, PartialEq, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/rows/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use crate::config::padding::OnagrePadding;
use generic::GenericContainerStyle;
use iced::alignment::{Horizontal, Vertical};
use iced::Length;
use iced_core::{Background, Border};
use iced_core::border::Radius;
use iced_core::{Background, Border};
use iced_style::container::{Appearance, StyleSheet};
use icon::IconStyle;

Expand Down
2 changes: 1 addition & 1 deletion src/app/style/scrollable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::app::style::Scale;
use crate::config::color::OnagreColor;
use crate::config::padding::OnagrePadding;
use iced::Length;
use iced_core::{Background, Border};
use iced_core::border::Radius;
use iced_core::{Background, Border};
use iced_style::container::{Appearance, StyleSheet};

pub mod scroller;
Expand Down
4 changes: 2 additions & 2 deletions src/app/style/scrollable/scroller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use crate::app::style::Scale;
use crate::config::color::OnagreColor;
use iced::widget::scrollable::Scrollbar;
use iced::Background;
use iced_core::Border;
use iced_core::border::Radius;
use iced_core::Border;
use iced_style::scrollable::{Appearance, StyleSheet};
use iced_style::theme::Scrollable;

Expand Down Expand Up @@ -78,7 +78,7 @@ impl StyleSheet for &ScrollerStyles {
color: self.scroller_border_color.into(),
width: self.scroller_border_width,
radius: Radius::from(self.scroller_border_radius),
}
},
},
},
gap: None,
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/search/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::config::color::OnagreColor;
use crate::config::padding::OnagrePadding;
use iced::alignment::{Horizontal, Vertical};
use iced::Length;
use iced_core::{Background, Border, Color};
use iced_core::border::Radius;
use iced_core::{Background, Border, Color};
use iced_style::text_input::{Appearance, StyleSheet};

#[derive(Debug, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion src/app/style/search/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use iced::alignment::{Horizontal, Vertical};
use iced::Length;
use iced_core::{Background, Border};
use iced_core::border::Radius;
use iced_core::{Background, Border};
use iced_style::container::{Appearance, StyleSheet};

use input::SearchInputStyles;
Expand Down

0 comments on commit 2fecf42

Please sign in to comment.