Rename ObjSections::count -> len

This commit is contained in:
2024-06-09 16:10:34 -06:00
parent 46cf0be183
commit 4dd2ebf85a
5 changed files with 9 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ struct VisitedAddresses {
impl VisitedAddresses {
pub fn new(obj: &ObjInfo) -> Self {
let mut inner = Vec::with_capacity(obj.sections.count());
let mut inner = Vec::with_capacity(obj.sections.len());
for (_, section) in obj.sections.iter() {
if section.kind == ObjSectionKind::Code {
let size = (section.size / 4) as usize;