From 00740de79f591caeff4570c58aca2292f98b8a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 10 Mar 2024 13:42:06 +0100 Subject: [PATCH] drawing: Unwrap errors Part-of: --- src/drawing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drawing.rs b/src/drawing.rs index 49c829f5..a7c42bf6 100644 --- a/src/drawing.rs +++ b/src/drawing.rs @@ -177,7 +177,7 @@ fn render_button_at_position( pressed: keyboard::PressType, locked: LockedStyle, ) { - cr.save(); + cr.save().unwrap(); cr.translate(position.x, position.y); cr.rectangle( 0.0, 0.0, @@ -220,7 +220,7 @@ fn render_button_at_position( } ); - cr.restore(); + cr.restore().unwrap(); } fn with_button_context R>(