From 3d5684458ba9243df3c8431501a3019fd4449023 Mon Sep 17 00:00:00 2001 From: manen <49951816+manen@users.noreply.github.com> Date: Thu, 30 Jan 2025 22:06:52 +0100 Subject: [PATCH] impl `DerefMut` for RaylibDrawHandle --- raylib/src/core/drawing.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/raylib/src/core/drawing.rs b/raylib/src/core/drawing.rs index a73514d4..381f115f 100644 --- a/raylib/src/core/drawing.rs +++ b/raylib/src/core/drawing.rs @@ -44,6 +44,11 @@ impl<'a> std::ops::Deref for RaylibDrawHandle<'a> { &self.0 } } +impl<'a> std::ops::DerefMut for RaylibDrawHandle<'a> { + fn deref_mut(&mut self) -> &mut Self::Target { + &mut self.0 + } +} impl<'a> RaylibDraw for RaylibDrawHandle<'a> {}