Skip to content

Commit 68002f1

Browse files
committed
Fix build error of removed str method.
1 parent 9497ee8 commit 68002f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/obj/objset.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ fn set_remove(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
8989
) -> PyResult {
9090
match elements.remove(&key) {
9191
None => {
92-
let item = value.borrow();
93-
Err(vm.new_key_error(item.str()))
92+
let item_str = format!("{:?}", value.borrow());
93+
Err(vm.new_key_error(item_str))
9494
}
9595
Some(_) => Ok(vm.get_none()),
9696
}

0 commit comments

Comments
 (0)