Merge pull request #86 from Smithay/fix/glium_borrow_mut

[glium] Remove unnecessary mutable self reference for borrowing
This commit is contained in:
Victor Brekenfeld 2018-03-29 17:26:39 +02:00 committed by GitHub
commit f927d98720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
/// mutably will panic. Note that glium will borrow the backend
/// (not mutably) during rendering.
pub fn borrow_mut(&mut self) -> RefMut<T> {
pub fn borrow_mut(&self) -> RefMut<T> {
self.backend.0.borrow_mut()
}
}