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
@@ -253,7 +253,7 @@ impl fmt::Debug for LuaOwnedRef {
|
||||
#[cfg(feature = "unstable")]
|
||||
impl Clone for LuaOwnedRef {
|
||||
fn clone(&self) -> Self {
|
||||
self.as_ref().clone().into_owned()
|
||||
self.to_ref().clone().into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -282,7 +282,7 @@ impl LuaOwnedRef {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) const fn as_ref(&self) -> LuaRef {
|
||||
pub(crate) const fn to_ref(&self) -> LuaRef {
|
||||
LuaRef {
|
||||
lua: &self.lua,
|
||||
index: self.index,
|
||||
|
||||
Reference in New Issue
Block a user