![]() # 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` |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |