mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Remove outer RefCell from PyObjectRef
This commit is contained in:
@@ -29,7 +29,7 @@ pub fn init(context: &PyContext) {
|
||||
}
|
||||
|
||||
pub fn get_value(obj: &PyObjectRef) -> bytecode::CodeObject {
|
||||
if let PyObjectPayload::Code { code } = &obj.borrow().payload {
|
||||
if let PyObjectPayload::Code { code } = &obj.payload {
|
||||
code.clone()
|
||||
} else {
|
||||
panic!("Inner error getting code {:?}", obj)
|
||||
|
||||
Reference in New Issue
Block a user