Don't use rayon in examples on wasm
This commit is contained in:
parent
d735510f72
commit
7b4717fdc4
3 changed files with 21 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ pub enum SoftBufferError<W: HasRawWindowHandle> {
|
|||
PlatformError(Option<String>, Option<Box<dyn Error>>)
|
||||
}
|
||||
|
||||
#[allow(unused)] // This isn't used on all platforms
|
||||
pub(crate) fn unwrap<T, E: std::error::Error + 'static, W: HasRawWindowHandle>(res: Result<T, E>, str: &str) -> Result<T, SoftBufferError<W>>{
|
||||
match res{
|
||||
Ok(t) => Ok(t),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue