leptos-rs / leptos

Build fast web applications with Rust.
https://leptos.dev
MIT License
15.31k stars 599 forks source link

Fix `empty_docs` warnings in `#[component]` macro #2574

Closed abusch closed 2 months ago

abusch commented 2 months ago

The #[component] macro used to output an empty rustdoc comment (i.e ///) when a component had no documentation and no props. This triggers the empty_docs clippy warning which is new, and on by default, in Rust 1.78. This change avoids outputting that empty comment in that particular case.

fixes: #2571