Most of my crates have the following instruction in lib.rs:
#![warn(missing_docs)]
And due to this I'm getting a warning when I'm using rust-embed:
warning: missing documentation for an associated function
--> git-cliff-core/src/embed.rs:14:17
|
14 | #[derive(Debug, RustEmbed)]
| ^^^^^^^^^
|
note: the lint level is defined here
--> git-cliff-core/src/lib.rs:2:9
|
2 | #![warn(missing_docs, clippy::unwrap_used)]
| ^^^^^^^^^^^^
= note: this warning originates in the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: missing documentation for an associated function
--> git-cliff-core/src/embed.rs:14:17
|
14 | #[derive(Debug, RustEmbed)]
| ^^^^^^^^^
|
= note: this warning originates in the derive macro `RustEmbed` (in Nightly builds, run with -Z macro-backtrace for more info)
So can we add (at least 1 line of) doc comments to macro generated functions? (get and iter) I think this would be good to have in case other people might face the same issue in the future.
What do you think? I'd like to provide a PR about this.
Hey!
Most of my crates have the following instruction in
lib.rs
:And due to this I'm getting a warning when I'm using
rust-embed
:So can we add (at least 1 line of) doc comments to macro generated functions? (
get
anditer
) I think this would be good to have in case other people might face the same issue in the future.What do you think? I'd like to provide a PR about this.