[glium] Remove unnecessary mutable self reference for borrowing

This commit is contained in:
Drakulix 2018-03-29 15:31:25 +02:00
parent 879e2058cd
commit c36c511c53
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ impl<T: EGLGraphicsBackend + 'static> GliumGraphicsBackend<T> {
/// Holding any other borrow while trying to borrow the backend /// Holding any other borrow while trying to borrow the backend
/// mutably will panic. Note that glium will borrow the backend /// mutably will panic. Note that glium will borrow the backend
/// (not mutably) during rendering. /// (not mutably) during rendering.
pub fn borrow_mut(&mut self) -> RefMut<T> { pub fn borrow_mut(&self) -> RefMut<T> {
self.backend.0.borrow_mut() self.backend.0.borrow_mut()
} }
} }