Clippy suggestions

This commit is contained in:
Adrian Woźniak 2022-06-15 15:41:13 +02:00
parent 9e67e7f596
commit 9c0b3baa57
No known key found for this signature in database
GPG Key ID: 0012845A89C7352B

View File

@ -28,7 +28,7 @@ impl<'l> Widget for ConfigFile<'l> {
let min: MatrixPoint = if current == &MatrixPoint::MIN {
MatrixPoint::MIN
} else if let Some(prev) = &prev {
prev.clone()
*prev
} else {
MatrixPoint::MIN
};
@ -98,7 +98,7 @@ impl<'l> Widget for ConfigFile<'l> {
});
ui.separator();
prev = Some(current.clone());
prev = Some(*current);
}
ui.allocate_response(ui.available_size(), Sense::click())