small cleanup

Former-commit-id: 2996ce0cf33337bf52810f1e52b2c02d6eba5c7f
This commit is contained in:
Imbris 2019-04-25 16:20:44 -04:00
parent caea30a34f
commit 13350856db

View File

@ -375,8 +375,8 @@ impl Ui {
let Primitive {
kind,
scizzor,
id: _id,
rect,
...
} = prim;
// Check for a change in the scizzor
@ -441,7 +441,7 @@ impl Ui {
_ => {}
}
// Switch to the `Image` state for this image if we're not in it already.
// Switch to the image state if we are not in it already
if let State::Plain = current_state {
self.draw_commands
.push(DrawCommand::plain(renderer.create_model(&mesh).unwrap()));