Skip to content

Commit cf82d6f

Browse files
committed
clean up descriptor
1 parent 8fd984a commit cf82d6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vm/src/builtins/descriptor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
class::PyClassImpl,
44
function::PySetterValue,
55
types::{Constructor, GetDescriptor, Representable, Unconstructible},
6-
AsObject, Context, Py, PyObjectRef, PyPayload, PyRef, PyResult, VirtualMachine,
6+
AsObject, Context, Py, PyObjectRef, PyPayload, PyResult, VirtualMachine,
77
};
88
use rustpython_common::lock::PyRwLock;
99

@@ -103,8 +103,8 @@ fn calculate_qualname(descr: &DescrObject, vm: &VirtualMachine) -> PyResult<Opti
103103
#[pyclass(with(GetDescriptor, Constructor, Representable), flags(BASETYPE))]
104104
impl MemberDescrObject {
105105
#[pygetset(magic)]
106-
fn doc(zelf: PyRef<Self>) -> Option<String> {
107-
zelf.member.doc.to_owned()
106+
fn doc(&self) -> Option<String> {
107+
self.member.doc.to_owned()
108108
}
109109

110110
#[pygetset(magic)]

0 commit comments

Comments
 (0)