Skip to content

Commit 1601da0

Browse files
committed
Migrate PyFloat to new method style
1 parent e0e0734 commit 1601da0

File tree

3 files changed

+312
-437
lines changed

3 files changed

+312
-437
lines changed

vm/src/function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use crate::vm::VirtualMachine;
2222
/// A `PyRef<T>` can be directly returned from a built-in function to handle
2323
/// situations (such as when implementing in-place methods such as `__iadd__`)
2424
/// where a reference to the same object must be returned.
25+
#[derive(Clone)]
2526
pub struct PyRef<T> {
2627
// invariant: this obj must always have payload of type T
2728
obj: PyObjectRef,

0 commit comments

Comments
 (0)