Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored and wash2 committed Nov 28, 2023
1 parent fe7f152 commit 8dc5c74
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions renderer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ impl<T> crate::graphics::geometry::Renderer for Renderer<T> {
crate::Geometry::TinySkia(primitive) => {
renderer.draw_primitive(primitive);
}
#[cfg(feature = "wgpu")]
crate::Geometry::Wgpu(_) => unreachable!(),
#[allow(unreachable_patterns)]
_ => unreachable!(),
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions style/src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ use crate::text_editor;
use crate::text_input;
use crate::toggler;

use ::palette::FromColor;
use ::palette::RgbHue;
use iced_core::gradient::ColorStop;
use iced_core::gradient::Linear;
use iced_core::Degrees;
use iced_core::Radians;
use iced_core::{Background, Color, Vector};

use std::rc::Rc;
Expand Down
1 change: 1 addition & 0 deletions widget/src/checkbox.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Show toggle controls using checkboxes.
use iced_runtime::core::widget::Id;
#[cfg(feature = "a11y")]
use std::borrow::Cow;

use crate::core::alignment;
Expand Down
1 change: 1 addition & 0 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Navigate an endless amount of content with a scrollbar.
use iced_runtime::core::widget::Id;
#[cfg(feature = "a11y")]
use std::borrow::Cow;

use crate::core::event::{self, Event};
Expand Down
1 change: 1 addition & 0 deletions widget/src/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::core::{
ContentFit, Element, Layout, Length, Rectangle, Size, Vector, Widget,
};

#[cfg(feature = "a11y")]
use std::borrow::Cow;
use std::path::PathBuf;

Expand Down
1 change: 1 addition & 0 deletions widget/src/toggler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Show toggle controls using togglers.
#[cfg(feature = "a11y")]
use std::borrow::Cow;

use crate::core::alignment;
Expand Down
4 changes: 3 additions & 1 deletion winit/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod drag_resize;
mod profiler;
mod state;

#[cfg(feature = "a11y")]
use iced_graphics::core::widget::operation::focusable::focus;
use iced_graphics::core::widget::operation::OperationWrapper;
use iced_graphics::core::widget::Operation;
Expand Down Expand Up @@ -390,6 +391,7 @@ async fn run_instance<A, E, C>(
let mut events = Vec::new();
let mut messages = Vec::new();
let mut redraw_pending = false;
#[cfg(feature = "a11y")]
let mut commands: Vec<Command<A::Message>> = Vec::new();

#[cfg(feature = "a11y")]
Expand Down Expand Up @@ -1029,7 +1031,7 @@ pub fn run_command<A, C, E>(
window::Action::GainFocus => {
window.focus_window();
}
window::Action::ChangeLevel(level) => {
window::Action::ChangeLevel(_level) => {
// window.set_window_level(conversion::window_level(level));
}
window::Action::FetchId(tag) => {
Expand Down

0 comments on commit 8dc5c74

Please sign in to comment.