Skip to content

Commit 519f527

Browse files
committed
slots: remove duplicate pymethods from mmap
1 parent 73e967a commit 519f527

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

crates/stdlib/src/mmap.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,6 @@ mod mmap {
730730
.into()
731731
}
732732

733-
#[pymethod]
734733
fn __len__(&self) -> usize {
735734
self.size.load()
736735
}
@@ -1240,12 +1239,10 @@ mod mmap {
12401239
Ok(())
12411240
}
12421241

1243-
#[pymethod]
12441242
fn __getitem__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyObjectRef> {
12451243
self.getitem_inner(&needle, vm)
12461244
}
12471245

1248-
#[pymethod]
12491246
fn __setitem__(
12501247
zelf: &Py<Self>,
12511248
needle: PyObjectRef,

0 commit comments

Comments
 (0)