You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our project has strict rules on panic, and avoiding behavior which may panic.
We are getting the following error when running cargo clippy on a file which uses RustEmbed:
. error: indexing may panic
. --> bin/src/service/docs/mod.rs:29:10
. |
. 29 | #[derive(RustEmbed)]
. | ^^^^^^^^^
. |
. = help: consider using `.get(n)` or `.get_mut(n)` instead
. = help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#indexing_slicing
. = note: requested on the command line with `-D clippy::indexing-slicing`
. = note: this error originates in the derive macro `RustEmbed`
The text was updated successfully, but these errors were encountered:
Our project has strict rules on panic, and avoiding behavior which may panic.
We are getting the following error when running cargo clippy on a file which uses RustEmbed:
The text was updated successfully, but these errors were encountered: