Skip to content

Commit 5b20bb8

Browse files
Remove conflicting AsRef<Self> implementation for PyObject in core.rs (RustPython#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 <[email protected]>
1 parent 4bd3289 commit 5b20bb8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

vm/src/object/core.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -862,13 +862,6 @@ impl AsRef<PyObject> for PyObjectRef {
862862
}
863863
}
864864

865-
impl AsRef<Self> for PyObject {
866-
#[inline(always)]
867-
fn as_ref(&self) -> &Self {
868-
self
869-
}
870-
}
871-
872865
impl<'a, T: PyObjectPayload> From<&'a Py<T>> for &'a PyObject {
873866
#[inline(always)]
874867
fn from(py_ref: &'a Py<T>) -> Self {

0 commit comments

Comments
 (0)