Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broaden scope of suppressed warnings for listings without a main fn
At present, code listings without a main function will be wrapped in one and annotated with an allow lint check attribute provided by the following [code][]: ``` format!( "\n# #![allow(unused_variables)]\n{}#fn main() {{\n{}#}}", attrs, code ) ``` A broader lint check attribute such as `#![allow(unused)]` seems like it might better fit the apparent intent of this code. Addresses: rust-lang#1192 [code]: https://github.com/rust-lang/mdBook/blob/2bdee072a2b08f5b3b3ad03f89a5e96c936aab01/src/renderer/html_handlebars/hbs_renderer.rs#L635-L638
- Loading branch information