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 readme example code, as well as possibly other examples in rustdoc, 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.
@ishitatsuyuki I don't plan to fix this in Serde docs. I would prefer to consider this a false positive and fix it in Rust instead. rust-lang/rust#44294
Since rust-lang/rust#42588, Rust warns by default on unused extern crates. The readme example code, as well as possibly other examples in rustdoc, 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: