Fix clippy lints
This commit is contained in:
parent
0cf8bdfed6
commit
af44796056
|
@ -97,10 +97,8 @@ impl Model for ParamModel {
|
||||||
|
|
||||||
impl Model for WindowModel {
|
impl Model for WindowModel {
|
||||||
fn event(&mut self, cx: &mut vizia::Context, event: &mut vizia::Event) {
|
fn event(&mut self, cx: &mut vizia::Context, event: &mut vizia::Event) {
|
||||||
if let Some(window_event) = event.message.downcast() {
|
|
||||||
match *window_event {
|
|
||||||
// This gets fired whenever the inner window gets resized
|
// This gets fired whenever the inner window gets resized
|
||||||
WindowEvent::WindowResize => {
|
if let Some(WindowEvent::WindowResize) = event.message.downcast() {
|
||||||
let logical_size = (cx.window_size.width, cx.window_size.height);
|
let logical_size = (cx.window_size.width, cx.window_size.height);
|
||||||
let old_logical_size @ (old_logical_width, old_logical_height) =
|
let old_logical_size @ (old_logical_width, old_logical_height) =
|
||||||
self.vizia_state.size.load();
|
self.vizia_state.size.load();
|
||||||
|
@ -127,12 +125,9 @@ impl Model for WindowModel {
|
||||||
cx.user_scale_factor = old_user_scale_factor;
|
cx.user_scale_factor = old_user_scale_factor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => (),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<P: Param> From<ParamEvent<'_, P>> for RawParamEvent {
|
impl<P: Param> From<ParamEvent<'_, P>> for RawParamEvent {
|
||||||
fn from(event: ParamEvent<'_, P>) -> Self {
|
fn from(event: ParamEvent<'_, P>) -> Self {
|
||||||
match event {
|
match event {
|
||||||
|
|
Loading…
Reference in a new issue