diff --git a/vm/src/object/core.rs b/vm/src/object/core.rs index cfb290c73d1..eb3f9dcfcc2 100644 --- a/vm/src/object/core.rs +++ b/vm/src/object/core.rs @@ -862,13 +862,6 @@ impl AsRef for PyObjectRef { } } -impl AsRef for PyObject { - #[inline(always)] - fn as_ref(&self) -> &Self { - self - } -} - impl<'a, T: PyObjectPayload> From<&'a Py> for &'a PyObject { #[inline(always)] fn from(py_ref: &'a Py) -> Self {