Skip to content

Commit

Permalink
chore: cleanup warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Dec 26, 2024
1 parent f86f5fc commit 0e02770
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion violet-core/src/layout/flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::sync::Arc;

use flax::{Entity, EntityRef, World};
use glam::{vec2, BVec2, Vec2};
use image::imageops::colorops::contrast_in_place;
use itertools::Itertools;

use super::{
Expand Down
2 changes: 1 addition & 1 deletion violet-core/src/state/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{marker::PhantomData, sync::Arc};

use futures::StreamExt;

use super::{State, StateMut, StateOwned, StateSink, StateStream, StateStreamRef};
use super::{State, StateMut, StateOwned, StateSink, StateStream};

pub struct Transform<C, U, F, G> {
inner: C,
Expand Down
15 changes: 6 additions & 9 deletions violet-core/src/widget/interactive/button.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
use flax::{component::ComponentValue, EntityRef};
use flax::EntityRef;
use palette::Srgba;
use winit::{
event::{ElementState, MouseButton},
platform::pump_events::EventLoopExtPumpEvents,
};
use winit::event::{ElementState, MouseButton};

use crate::{
components::{self, color, widget_corner_radius},
components::{self},
input::{focusable, on_mouse_input},
layout::Align,
scope::ScopeRef,
Expand Down Expand Up @@ -195,7 +192,7 @@ impl<W: Widget> Widget for Button<W> {

let pressed = self.style.pressed.resolve(&stylesheet);
let normal = self.style.normal.resolve(&stylesheet);
let hover = self.style.hover.resolve(&stylesheet);
let _hover = self.style.hover.resolve(&stylesheet);

let mut is_pressed = false;

Expand Down Expand Up @@ -275,7 +272,7 @@ impl<W: Widget> Widget for Checkbox<W> {

let pressed = self.style.pressed.resolve(&stylesheet);
let normal = self.style.normal.resolve(&stylesheet);
let hover = self.style.hover.resolve(&stylesheet);
let _hover = self.style.hover.resolve(&stylesheet);

let content = scope.attach(self.label);

Expand Down Expand Up @@ -368,7 +365,7 @@ impl<W: Widget> Widget for Radio<W> {

let pressed = self.style.pressed.resolve(&stylesheet);
let normal = self.style.normal.resolve(&stylesheet);
let hover = self.style.hover.resolve(&stylesheet);
let _hover = self.style.hover.resolve(&stylesheet);

let content = scope.attach(self.label);

Expand Down
2 changes: 1 addition & 1 deletion violet-core/src/widget/interactive/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use winit::{
};

use crate::{
components::{self, screen_transform, widget_corner_radius},
components::{self, screen_transform},
editor::{CursorMove, EditAction, EditorAction, TextChange, TextEditor},
input::{
focusable, keep_focus, on_cursor_move, on_focus, on_keyboard_input, on_mouse_input,
Expand Down

0 comments on commit 0e02770

Please sign in to comment.