mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Revert "Rename Owned*::to_ref() to as_ref()"
This reverts commit 5394faca16.
This commit is contained in:
+2
-2
@@ -747,8 +747,8 @@ pub struct OwnedAnyUserData(pub(crate) crate::types::LuaOwnedRef);
|
||||
|
||||
#[cfg(feature = "unstable")]
|
||||
impl OwnedAnyUserData {
|
||||
pub const fn as_ref(&self) -> AnyUserData {
|
||||
AnyUserData(self.0.as_ref())
|
||||
pub const fn to_ref(&self) -> AnyUserData {
|
||||
AnyUserData(self.0.to_ref())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user