Skip to content

Commit

Permalink
Cleanup one step further.
Browse files Browse the repository at this point in the history
Allow clippy::useless_attribute directly.
  • Loading branch information
kaj committed Jun 1, 2024
1 parent 124746b commit 9dca648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ fn handle_entries(
create_dir_all(&outdir)?;
let mut modrs = Vec::with_capacity(512);
modrs.write_all(
b"#[allow(renamed_and_removed_lints)]\n\
#[cfg_attr(feature=\"clippy\", \
allow(useless_attribute))]\n\
b"#[allow(clippy::useless_attribute))]\n\
#[allow(unused)]\n\
use super::{Html,ToHtml};\n",
)?;
Expand Down
4 changes: 1 addition & 3 deletions src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ impl Template {
) -> io::Result<()> {
out.write_all(
b"use std::io::{self, Write};\n\
#[allow(renamed_and_removed_lints)]\n\
#[cfg_attr(feature=\"clippy\", \
allow(useless_attribute))]\n\
#[allow(clippy::useless_attribute)]\n\
#[allow(unused)]\n\
use super::{Html,ToHtml};\n",
)?;
Expand Down

0 comments on commit 9dca648

Please sign in to comment.