Skip to content

Commit

Permalink
fix: remove platform-specific error value type
Browse files Browse the repository at this point in the history
  • Loading branch information
NickUfer committed Dec 18, 2024
1 parent b782324 commit 6140e0c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ impl From<ManifoldError> for Error {
manifold3d_sys::ManifoldError_MANIFOLD_INVALID_CONSTRUCTION => {
Error::InvalidConstruction
}
// These error codes will, with high probability, never reach i32::MAX.
#[cfg(windows)]
value => Error::Unknown(value as u32),
#[cfg(not(windows))]
value => Error::Unknown(value),
}
}
Expand Down

0 comments on commit 6140e0c

Please sign in to comment.