Skip to content

Commit 540b6f5

Browse files
committed
Refactor remainder
1 parent e988ffb commit 540b6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/builtins/bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ impl AsNumber for PyBytes {
611611
const AS_NUMBER: PyNumberMethods = PyNumberMethods {
612612
remainder: Some(|number, other, vm| {
613613
Self::number_downcast(number)
614-
.mod_(other.to_pyobject(vm), vm)
614+
.mod_(other.to_owned(), vm)
615615
.to_pyresult(vm)
616616
}),
617617
..PyNumberMethods::NOT_IMPLEMENTED

0 commit comments

Comments
 (0)