Don't use rayon in examples on wasm

This commit is contained in:
Liam Murphy 2022-02-23 19:13:26 +11:00
parent d735510f72
commit 7b4717fdc4
3 changed files with 21 additions and 3 deletions

View file

@ -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),