mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
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:
committed by
GitHub
parent
4bd328906e
commit
5b20bb851e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user