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
@@ -39,8 +39,8 @@ pub struct OwnedFunction(pub(crate) crate::types::LuaOwnedRef);
|
||||
#[cfg(feature = "unstable")]
|
||||
impl OwnedFunction {
|
||||
/// Get borrowed handle to the underlying Lua function.
|
||||
pub const fn as_ref(&self) -> Function {
|
||||
Function(self.0.as_ref())
|
||||
pub const fn to_ref(&self) -> Function {
|
||||
Function(self.0.to_ref())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user