Remove conflicting AsRef<Self> implementation for PyObject in core.rs (#5899)

* 📝 CodeRabbit Chat: Remove conflicting AsRef<Self> implementation for PyObject in core.rs

* Update vm/src/object/core.rs

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
This commit is contained in:
coderabbitai[bot]
2025-07-04 11:40:30 +09:00
committed by GitHub
parent 4bd328906e
commit 5b20bb851e

View File

@@ -862,13 +862,6 @@ impl AsRef<PyObject> for PyObjectRef {
}
}
impl AsRef<Self> for PyObject {
#[inline(always)]
fn as_ref(&self) -> &Self {
self
}
}
impl<'a, T: PyObjectPayload> From<&'a Py<T>> for &'a PyObject {
#[inline(always)]
fn from(py_ref: &'a Py<T>) -> Self {