diff --git a/src/ui/config.rs b/src/ui/config.rs index 8062793..33f21c0 100644 --- a/src/ui/config.rs +++ b/src/ui/config.rs @@ -340,7 +340,7 @@ impl ConfigPage { fn build_device_choices(&self, snapshot: &RegistrySnapshot) -> Vec { let mut choices = vec![DeviceOption { - label: format!("Default sink - {}", &self.hardware_sink_label), + label: format!("Default sink - {}", self.hardware_sink_label), selection: DeviceSelection::Default, }]; let mut devices: Vec<_> = snapshot diff --git a/src/ui/widgets/palette_editor.rs b/src/ui/widgets/palette_editor.rs index 53b393d..9c30218 100644 --- a/src/ui/widgets/palette_editor.rs +++ b/src/ui/widgets/palette_editor.rs @@ -557,7 +557,7 @@ fn channel_slider<'a>( } PaletteEvent::Adjust { index, color: nc } }) - .step(0.01) + .step(0.01f32) .style(ui_theme::slider_style) .width(Length::Fill), )