From c36c511c53715938fc78350231498b40405ddd62 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Thu, 29 Mar 2018 15:31:25 +0200 Subject: [PATCH] [glium] Remove unnecessary mutable self reference for borrowing --- src/backend/graphics/glium.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/graphics/glium.rs b/src/backend/graphics/glium.rs index c128c6e..efd1cf6 100644 --- a/src/backend/graphics/glium.rs +++ b/src/backend/graphics/glium.rs @@ -72,7 +72,7 @@ impl GliumGraphicsBackend { /// Holding any other borrow while trying to borrow the backend /// mutably will panic. Note that glium will borrow the backend /// (not mutably) during rendering. - pub fn borrow_mut(&mut self) -> RefMut { + pub fn borrow_mut(&self) -> RefMut { self.backend.0.borrow_mut() } }