Skip to content

Commit 8fc325a

Browse files
committed
try implementing suggestions
1 parent ef3274b commit 8fc325a

File tree

1 file changed

+3
-3
lines changed
  • src/tools/run-make-support/src/nm

1 file changed

+3
-3
lines changed

src/tools/run-make-support/src/nm/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use object::{Object, ObjectSection};
33
use std::path::Path;
44

55
#[derive(Debug)]
6-
pub struct Nm {
7-
file: Option<object::File>,
6+
pub struct Nm<'a> {
7+
file: Option<object::File<'a>>,
88
}
99

1010
pub fn nm() -> Nm {
@@ -32,7 +32,7 @@ impl Nm {
3232
let object_file = self.file;
3333
let mut symbols_str = String::new();
3434
for section in object_file.sections() {
35-
if let Ok(ObjectSection::SymbolTable(st)) = section.parse::<object::SymbolTable>() {
35+
if let Ok(object::read::elf::SymbolTable(st)) = section.parse::<object::read::elf::SymbolTable<'_, '_>>() {
3636
for symbol in st.symbols() {
3737
symbols_str.push_str(&format!(
3838
"{:016x} {:?} {}\n",

0 commit comments

Comments
 (0)