Skip to content

Commit 1b726cf

Browse files
committed
elf.dynamic: fix nightly failure; use ridiculous && suggestion
1 parent a8fc7a8 commit 1b726cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elf/dynamic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ macro_rules! elf_dyn_std_impl {
567567
let mut needed = Vec::with_capacity(count.min(dyns.len()));
568568
for dynamic in dyns {
569569
if u64::from(dynamic.d_tag) == DT_NEEDED {
570-
let lib = &(*strtab)[dynamic.d_val as usize];
570+
let lib = &(&(*strtab))[dynamic.d_val as usize];
571571
needed.push(lib);
572572
}
573573
}

0 commit comments

Comments
 (0)