mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Add Send, Sync and 'static bounds to Error variant
This commit is contained in:
+1
-1
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
@@ -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))),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user