drawing: Unwrap errors

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/621>
This commit is contained in:
Guido Günther
2024-03-10 13:42:06 +01:00
parent d801b77e96
commit 00740de79f

View File

@ -177,7 +177,7 @@ fn render_button_at_position(
pressed: keyboard::PressType, pressed: keyboard::PressType,
locked: LockedStyle, locked: LockedStyle,
) { ) {
cr.save(); cr.save().unwrap();
cr.translate(position.x, position.y); cr.translate(position.x, position.y);
cr.rectangle( cr.rectangle(
0.0, 0.0, 0.0, 0.0,
@ -220,7 +220,7 @@ fn render_button_at_position(
} }
); );
cr.restore(); cr.restore().unwrap();
} }
fn with_button_context<R, F: FnOnce(&c::GtkStyleContext) -> R>( fn with_button_context<R, F: FnOnce(&c::GtkStyleContext) -> R>(