Skip to content

Allow signature-bound Clippy lints on define_class! methods - #891

Open
LucaCappelletti94 wants to merge 1 commit into
madsmtm:mainfrom
LucaCappelletti94:upstream/define-class-unused-self
Open

LucaCappelletti94 wants to merge 1 commit into
madsmtm:mainfrom
LucaCappelletti94:upstream/define-class-unused-self

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

Since the define_class! rewrite in 8e8dd7d, methods are emitted as ordinary inherent methods, so Clippy now raises unused_self, unnecessary_wraps, trivially_copy_pass_by_ref and missing_const_for_fn on them. None of their suggestions can be followed, since the signature is dictated by the Objective-C method and define_class! rejects const fn.

This allows those four lints on each emitted method, with a test that denies them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant