Add Send, Sync and 'static bounds to Error variant

This commit is contained in:
Oliver Hamlet
2025-02-26 19:45:59 +00:00
parent 08749f51ad
commit f7d9947fa4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ pub enum Error {
UnconsumedInput(String),
/// The string is the input at which the error was encountered.
ParsingError(String, ParsingErrorKind),
PeParsingError(PathBuf, Box<dyn error::Error>),
PeParsingError(PathBuf, Box<dyn error::Error + Send + Sync + 'static>),
IoError(PathBuf, io::Error),
}
+1 -1
View File
@@ -150,7 +150,7 @@ impl Version {
match get_pe_version_info(file_map.as_ref()) {
Ok(v) => Ok(formatter(&v).map(Version::from)),
Err(FindError::NotFound) => Ok(None),
Err(e) => Err(Error::PeParsingError(file_path.to_path_buf(), e.into())),
Err(e) => Err(Error::PeParsingError(file_path.to_path_buf(), Box::new(e))),
}
}
}