From 815d1417e07179614fff1a47f0c463dca10f4c88 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Fri, 29 Nov 2024 18:59:00 +0100 Subject: [PATCH] buffers: fix threads --- src/buffers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffers.rs b/src/buffers.rs index b17dcd0..35bf116 100644 --- a/src/buffers.rs +++ b/src/buffers.rs @@ -95,7 +95,7 @@ impl Default for BoundSurface>> { #[cfg(feature="threads")] impl Surface for BoundSurface>> { - fn rect(&self) -> Rectangle { + fn rect(&self) -> Rectangle { let r = self.binding.lock().unwrap(); r.rect.clone() } @@ -114,7 +114,7 @@ impl Surface for BoundSurface>> { self.binding.lock().unwrap().shader = None; } - fn set_rect(&mut self, rect: &Rectangle) { + fn set_rect(&mut self, rect: &Rectangle) { self.binding.lock().unwrap().rect = rect.clone(); }