diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs
index 05afbdecee..e0d3fd4b25 100644
--- a/src/renderer/html_handlebars/hbs_renderer.rs
+++ b/src/renderer/html_handlebars/hbs_renderer.rs
@@ -633,7 +633,7 @@ fn add_playpen_pre(html: &str, playpen_config: &Playpen) -> String {
let (attrs, code) = partition_source(code);
format!(
- "\n# #![allow(unused_variables)]\n{}#fn main() {{\n{}#}}",
+ "\n# #![allow(unused)]\n{}#fn main() {{\n{}#}}",
attrs, code
)
.into()
@@ -756,7 +756,7 @@ mod tests {
fn add_playpen() {
let inputs = [
("x()
",
- "
\n#![allow(unused_variables)]\nfn main() {\nx()\n}\n
"),
+ "\n#![allow(unused)]\nfn main() {\nx()\n}\n
"),
("fn main() {}
",
"fn main() {}\n
"),
("let s = \"foo\n # bar\n\";
",