Skip to content

Commit

Permalink
fix: make SanityError Send + Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Apr 21, 2024
1 parent 095b6ea commit 26da1f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/manage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pub fn install_with_sanity<T, F>(
) -> Result<PathBuf>
where
T: Read + Seek,
F: FnOnce(&T) -> Result<(), Box<dyn Error>>,
F: FnOnce(&T) -> Result<(), Box<dyn Error + Send + Sync + 'static>>,
{
if let Err(e) = sanity_check(&zip_file) {
return Err(ThermiteError::SanityError(e));
Expand Down
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub enum ThermiteError {
#[error("Error stripping directory prefix {0}\nIs the mod formatted correctly?")]
PrefixError(#[from] StripPrefixError),
#[error("Sanity check failed: {0}")]
SanityError(Box<dyn Error>),
SanityError(Box<dyn Error + Send + Sync + 'static>),
#[error("Attempted to save a file but the path was None")]
MissingPath,
#[error("Error converting string to integer: {0}")]
Expand Down

0 comments on commit 26da1f6

Please sign in to comment.