mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
replace deprecated get_ref call
This commit is contained in:
+1
-1
@@ -274,7 +274,7 @@ impl Renderer<Surface> {
|
||||
|
||||
impl<S> Renderer<S> {
|
||||
#[inline]
|
||||
pub fn get_parent<'a>(&'a self) -> &'a S { self.parent.get_ref() }
|
||||
pub fn get_parent<'a>(&'a self) -> &'a S { self.parent.as_ref().unwrap() }
|
||||
|
||||
#[inline]
|
||||
pub fn unwrap_parent(mut self) -> S {
|
||||
|
||||
Reference in New Issue
Block a user