diff --git a/core/src/session.rs b/core/src/session.rs index 4eecbe95..9fe785ed 100644 --- a/core/src/session.rs +++ b/core/src/session.rs @@ -213,11 +213,11 @@ impl Session { pub struct SessionWeak(pub Weak); impl SessionWeak { - pub fn try_upgrade(&self) -> Option { + fn try_upgrade(&self) -> Option { self.0.upgrade().map(Session) } - pub fn upgrade(&self) -> Session { + pub(crate) fn upgrade(&self) -> Session { self.try_upgrade().expect("Session died") } }