Skip to content

Commit 29e9029

Browse files
Merge pull request RustPython#615 from adrian17/float
Migrate PyFloat to new method style
2 parents e0e0734 + 1601da0 commit 29e9029

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)