Skip to content

Commit a396a29

Browse files
committed
Ignore some pedantic clippy lints
1 parent cc2fcfa commit a396a29

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
clippy::default_trait_access,
308308
clippy::doc_markdown,
309309
clippy::if_not_else,
310+
clippy::items_after_statements,
310311
clippy::match_like_matches_macro,
311312
clippy::module_name_repetitions,
312313
clippy::shadow_unrelated,

src/receiver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ impl VisitMut for HasSelf {
8888
pub struct ReplaceSelf(pub Span);
8989

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

0 commit comments

Comments
 (0)