Fix clippy nags
This commit is contained in:
@ -112,7 +112,7 @@ impl Page for Model {
|
||||
}
|
||||
Msg::ColorPicker(msg) => {
|
||||
self.color_picker
|
||||
.update(msg, &mut orders.proxy(|msg| Msg::ColorPicker(msg)));
|
||||
.update(msg, &mut orders.proxy(Msg::ColorPicker));
|
||||
}
|
||||
Msg::SetBulbPower(power) => {
|
||||
self.groups_interacted = true;
|
||||
@ -125,7 +125,7 @@ impl Page for Model {
|
||||
});
|
||||
}
|
||||
Msg::LightTime(time, day) => {
|
||||
if time == "" {
|
||||
if time.is_empty() {
|
||||
self.for_selected_bulbs(|id, _| {
|
||||
let message = ClientMessage::SetBulbWakeTime {
|
||||
id: id.clone(),
|
||||
@ -259,9 +259,7 @@ impl Page for Model {
|
||||
div![
|
||||
C![C.bulb_controls],
|
||||
IF!(selected_bulb.is_none() => C![C.bulb_controls_disable]),
|
||||
self.color_picker
|
||||
.view()
|
||||
.map_msg(|msg| Msg::ColorPicker(msg)),
|
||||
self.color_picker.view().map_msg(Msg::ColorPicker),
|
||||
button![
|
||||
if selected_bulb.map(|b| b.mode.power).unwrap_or(false) {
|
||||
C![C.bulb_power_button, C.bulb_power_button_on]
|
||||
|
||||
Reference in New Issue
Block a user