Skip to content

Commit fcd2fa4

Browse files
committed
Use correct heap size funcitons
1 parent 47633c1 commit fcd2fa4

File tree

1 file changed

+3
-3
lines changed
  • crates/ty_python_semantic/src/semantic_index

1 file changed

+3
-3
lines changed

crates/ty_python_semantic/src/semantic_index/place.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ pub(crate) struct PlaceTable {
148148

149149
impl get_size2::GetSize for PlaceTable {
150150
fn get_heap_size(&self) -> usize {
151-
let symbols = self.symbols.get_size();
152-
let members = self.members.get_size();
151+
let symbols = self.symbols.get_heap_size();
152+
let members = self.members.get_heap_size();
153153

154154
increment_memory_usage("symbols", symbols);
155155
increment_memory_usage("members", members);
@@ -558,7 +558,7 @@ impl Iterator for ParentPlaceIter<'_> {
558558
members,
559559
));
560560

561-
if let Some(id) = members.member_id(next_member.clone()) {
561+
if let Some(id) = members.member_id(next_member) {
562562
break Some(id.into());
563563
}
564564
}

0 commit comments

Comments
 (0)