Use the dyn keyword to specify parse_symbol takes a ref to a Read trait object.
This commit is contained in:
parent
44654da0c6
commit
48e4313ce4
@ -253,7 +253,7 @@ impl File {
|
||||
Ok(symbols)
|
||||
}
|
||||
|
||||
fn parse_symbol(&self, io_section: &mut Read, symbols: &mut Vec<types::Symbol>, link: &[u8]) -> Result<(), ParseError> {
|
||||
fn parse_symbol(&self, io_section: &mut dyn Read, symbols: &mut Vec<types::Symbol>, link: &[u8]) -> Result<(), ParseError> {
|
||||
let name: u32;
|
||||
let value: u64;
|
||||
let size: u64;
|
||||
|
Loading…
x
Reference in New Issue
Block a user