Skip to content

Commit

Permalink
Ignore some pedantic clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 5, 2021
1 parent cc2fcfa commit a396a29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
clippy::default_trait_access,
clippy::doc_markdown,
clippy::if_not_else,
clippy::items_after_statements,
clippy::match_like_matches_macro,
clippy::module_name_repetitions,
clippy::shadow_unrelated,
Expand Down
1 change: 1 addition & 0 deletions src/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl VisitMut for HasSelf {
pub struct ReplaceSelf(pub Span);

impl ReplaceSelf {
#[cfg_attr(not(self_span_hack), allow(clippy::unused_self))]
fn prepend_underscore_to_self(&self, ident: &mut Ident) -> bool {
let modified = ident == "self";
if modified {
Expand Down

0 comments on commit a396a29

Please sign in to comment.