clippy + fmt

This commit is contained in:
galister 2026-05-13 16:39:15 +09:00
parent 80bfb177be
commit 8691cf99d2
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
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::{
components::{
button::{ButtonClickEvent, ComponentButton},

View File

@ -1,8 +1,8 @@
use crate::tab::settings::{
SettingType, SettingsMountParams, SettingsTab,
macros::{
options_category, options_checkbox, options_dropdown, options_range_f32, options_slider_f32, options_slider_i32,
},
SettingType, SettingsMountParams, SettingsTab,
};
pub struct State {}

View File

@ -1,6 +1,6 @@
use crate::tab::settings::{
macros::{options_category, options_checkbox, options_range_f32, options_slider_f32},
SettingType, SettingsMountParams, SettingsTab,
macros::{options_category, options_checkbox, options_range_f32, options_slider_f32},
};
pub struct State {}

View File

@ -1,6 +1,6 @@
use crate::tab::settings::{
macros::{options_category, options_checkbox, options_dropdown, options_slider_f32},
SettingType, SettingsMountParams, SettingsTab,
macros::{options_category, options_checkbox, options_dropdown, options_slider_f32},
};
pub struct State {}

View File

@ -278,7 +278,7 @@ impl State {
fn set_value(&mut self, common: &mut CallbackDataCommon, data: &Data, index: ValueIndex, new_value: f32) {
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 {
ValueIndex::Primary => Some(&mut self.value1),