mirror of https://github.com/wayvr-org/wayvr.git
clippy + fmt
This commit is contained in:
parent
80bfb177be
commit
8691cf99d2
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{collections::HashMap, rc::Rc};
|
use std::{collections::HashMap, rc::Rc};
|
||||||
|
|
||||||
use crate::tab::settings::{self, horiz_cell, mount_requires_restart, SettingType, Task};
|
use crate::tab::settings::{self, SettingType, Task, horiz_cell, mount_requires_restart};
|
||||||
use wgui::{
|
use wgui::{
|
||||||
components::{
|
components::{
|
||||||
button::{ButtonClickEvent, ComponentButton},
|
button::{ButtonClickEvent, ComponentButton},
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
use crate::tab::settings::{
|
use crate::tab::settings::{
|
||||||
|
SettingType, SettingsMountParams, SettingsTab,
|
||||||
macros::{
|
macros::{
|
||||||
options_category, options_checkbox, options_dropdown, options_range_f32, options_slider_f32, options_slider_i32,
|
options_category, options_checkbox, options_dropdown, options_range_f32, options_slider_f32, options_slider_i32,
|
||||||
},
|
},
|
||||||
SettingType, SettingsMountParams, SettingsTab,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct State {}
|
pub struct State {}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::tab::settings::{
|
use crate::tab::settings::{
|
||||||
macros::{options_category, options_checkbox, options_range_f32, options_slider_f32},
|
|
||||||
SettingType, SettingsMountParams, SettingsTab,
|
SettingType, SettingsMountParams, SettingsTab,
|
||||||
|
macros::{options_category, options_checkbox, options_range_f32, options_slider_f32},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct State {}
|
pub struct State {}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::tab::settings::{
|
use crate::tab::settings::{
|
||||||
macros::{options_category, options_checkbox, options_dropdown, options_slider_f32},
|
|
||||||
SettingType, SettingsMountParams, SettingsTab,
|
SettingType, SettingsMountParams, SettingsTab,
|
||||||
|
macros::{options_category, options_checkbox, options_dropdown, options_slider_f32},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct State {}
|
pub struct State {}
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,7 @@ impl State {
|
||||||
|
|
||||||
fn set_value(&mut self, common: &mut CallbackDataCommon, data: &Data, index: ValueIndex, new_value: f32) {
|
fn set_value(&mut self, common: &mut CallbackDataCommon, data: &Data, index: ValueIndex, new_value: f32) {
|
||||||
let val1 = self.value1.get();
|
let val1 = self.value1.get();
|
||||||
let val2 = self.value2.as_ref().map(|v| v.get()).unwrap_or(f32::MAX);
|
let val2 = self.value2.as_ref().map_or(f32::MAX, Value::get);
|
||||||
|
|
||||||
let Some(value) = (match index {
|
let Some(value) = (match index {
|
||||||
ValueIndex::Primary => Some(&mut self.value1),
|
ValueIndex::Primary => Some(&mut self.value1),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue