Skip to content

Commit

Permalink
Fix no method named to_string found for reference &'static str in…
Browse files Browse the repository at this point in the history
… the current scope
  • Loading branch information
kkent030315 committed Apr 13, 2024
1 parent 9088827 commit d10f92a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pe/header.rs
Expand Up @@ -933,9 +933,9 @@ impl<'a> RichHeader<'a> {
{
Some(offset) => offset,
None => {
return Err(error::Error::Malformed(
"Rich header does not contain the DanS marker".to_string(),
));
return Err(error::Error::Malformed(format!(
"Rich header does not contain the DanS marker"
)));
}
};

Expand Down

0 comments on commit d10f92a

Please sign in to comment.