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
Next Next commit
fix clippy warning
  • Loading branch information
Snowapril committed May 19, 2024
commit c1fe1f9fdb1fa958f0eda5508ec3e6ddf0bc3df0
4 changes: 2 additions & 2 deletions vm/src/builtins/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ fn calculate_meta_class(

fn solid_base(typ: &PyTypeRef, vm: &VirtualMachine) -> PyTypeRef {
let base = if let Some(base) = &typ.base {
solid_base(&base, vm)
solid_base(base, vm)
} else {
vm.ctx.types.object_type.to_owned()
};
Expand Down Expand Up @@ -1352,7 +1352,7 @@ fn best_base(bases: &[PyTypeRef], vm: &VirtualMachine) -> PyResult<PyTypeRef> {
)));
}

let candidate = solid_base(&base_i, vm);
let candidate = solid_base(base_i, vm);
if winner.is_none() {
winner = Some(candidate.clone());
base = Some(base_i.clone());
Expand Down