clippy: fix unwrap_or_else usage (#286)
Removes some unwrap_or_else calls when unwrap_or would suffice that were caught by clippy nightly.
This commit is contained in:
parent
271592936b
commit
465a433d0d
|
@ -51,15 +51,15 @@ impl BasicTableArrows for Painter {
|
|||
},
|
||||
)
|
||||
})
|
||||
.unwrap_or_else(|| Some(&BottomWidgetType::Temp))
|
||||
.unwrap_or_else(|| &BottomWidgetType::Temp)
|
||||
.unwrap_or(Some(&BottomWidgetType::Temp))
|
||||
.unwrap_or(&BottomWidgetType::Temp)
|
||||
} else {
|
||||
&left_widget.widget_type
|
||||
}
|
||||
})
|
||||
.unwrap_or_else(|| &BottomWidgetType::Temp)
|
||||
.unwrap_or(&BottomWidgetType::Temp)
|
||||
})
|
||||
.unwrap_or_else(|| &BottomWidgetType::Temp)
|
||||
.unwrap_or(&BottomWidgetType::Temp)
|
||||
},
|
||||
{
|
||||
current_table
|
||||
|
@ -80,15 +80,15 @@ impl BasicTableArrows for Painter {
|
|||
&right_right_widget.widget_type
|
||||
})
|
||||
})
|
||||
.unwrap_or_else(|| Some(&BottomWidgetType::Disk))
|
||||
.unwrap_or_else(|| &BottomWidgetType::Disk)
|
||||
.unwrap_or(Some(&BottomWidgetType::Disk))
|
||||
.unwrap_or(&BottomWidgetType::Disk)
|
||||
} else {
|
||||
&right_widget.widget_type
|
||||
}
|
||||
})
|
||||
.unwrap_or_else(|| &BottomWidgetType::Disk)
|
||||
.unwrap_or(&BottomWidgetType::Disk)
|
||||
})
|
||||
.unwrap_or_else(|| &BottomWidgetType::Disk)
|
||||
.unwrap_or(&BottomWidgetType::Disk)
|
||||
},
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue