Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy::use_self clippy warning inside #[salsa::tracked] #611

Open
gvozdvmozgu opened this issue Oct 30, 2024 · 1 comment
Open

clippy::use_self clippy warning inside #[salsa::tracked] #611

gvozdvmozgu opened this issue Oct 30, 2024 · 1 comment

Comments

@gvozdvmozgu
Copy link
Contributor

#![deny(clippy::use_self)]

#[salsa::tracked]
struct Test<'db> {}

#[salsa::tracked]
impl<'db> Test<'db> {
    #[salsa::tracked]
    fn test(self, _db: &'db dyn salsa::Database) {}
}
@Veykril
Copy link
Member

Veykril commented Dec 19, 2024

Sounds more like clippy shouldn't trigger within macros here for that lint

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

No branches or pull requests

2 participants