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
Since rust-lang/rust#42588, Rust warns by default on unused extern crates. The example on the homepage, as well as possibly other examples on the website, has extern crate serde but does not refer to anything from it. It is there as a reminder that the generated code requires serde to be listed as a dependency in Cargo.toml.
I imagine we can make up for it by providing an explicit Cargo.toml snippet instead.
Since rust-lang/rust#42588, Rust warns by default on unused extern crates. The example on the homepage, as well as possibly other examples on the website, has
extern crate serde
but does not refer to anything from it. It is there as a reminder that the generated code requires serde to be listed as a dependency in Cargo.toml.I imagine we can make up for it by providing an explicit Cargo.toml snippet instead.
The text was updated successfully, but these errors were encountered: