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 4a102d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +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\
#[allow(unused)]\n\
b"#[allow(clippy::useless_attribute, unused)]\n\
use super::{Html,ToHtml};\n",
)?;
handle_entries(&mut modrs, &path, &outdir)?;
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 4a102d1

Please sign in to comment.