Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into property_refactor
# Conflicts:
#	vm/src/function.rs
  • Loading branch information
skinnyBat committed Mar 9, 2019
commit 7d01323e0939a3ccf1e4804c0a77c9ea9cecb809
7 changes: 7 additions & 0 deletions vm/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ where
Err(vm.new_type_error(format!("{} is not a subtype of {}", subtype, basetype)))
}
}

pub fn as_object(&self) -> &PyObjectRef {
&self.obj
}
pub fn into_object(self) -> PyObjectRef {
self.obj
}
}

impl<T> Deref for PyRef<T>
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.