bevy/crates/bevy_asset/src/io
François Mockers a98b5683ae
bevy_asset: fix clippy in wasm (#19865)
# Objective

- bevy_asset has a clippy warning in wasm:
[`clippy::io_other_error`](https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error)

```
error: this can be `std::io::Error::other(_)`
  --> crates/bevy_asset/src/io/wasm.rs:50:9
   |
50 |         std::io::Error::new(std::io::ErrorKind::Other, message)
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
   = note: `-D clippy::io-other-error` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::io_other_error)]`
help: use `std::io::Error::other`
   |
50 -         std::io::Error::new(std::io::ErrorKind::Other, message)
50 +         std::io::Error::other(message)
```

## Solution

- Fix it

## Testing

`cargo clippy --target wasm32-unknown-unknown -p bevy_asset --no-deps --
-D warnings`
2025-06-29 20:36:53 +00:00
..
embedded Add newlines before impl blocks (#19746) 2025-06-22 23:07:02 +00:00
file ignore files starting with . when loading folders (#11214) 2025-05-05 22:42:01 +00:00
android.rs Switch bevy_asset to core::prelude (#17442) 2025-01-20 04:14:48 +00:00
gated.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
memory.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
mod.rs Switch bevy_asset to core::prelude (#17442) 2025-01-20 04:14:48 +00:00
processor_gated.rs Switch bevy_asset to core::prelude (#17442) 2025-01-20 04:14:48 +00:00
source.rs Rename bevy_platform_support to bevy_platform (#18813) 2025-04-11 23:13:28 +00:00
wasm.rs bevy_asset: fix clippy in wasm (#19865) 2025-06-29 20:36:53 +00:00