mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
clippy: Enable self_named_constructors
rule
This commit is contained in:
parent
d24bb7e289
commit
7669619f9a
5 changed files with 4 additions and 5 deletions
|
@ -30,7 +30,7 @@ macro_rules! impl_has_attrs {
|
|||
impl HasAttrs for $def {
|
||||
fn attrs(self, db: &dyn HirDatabase) -> AttrsWithOwner {
|
||||
let def = AttrDefId::$def_id(self.into());
|
||||
AttrsWithOwner::attrs_with_owner(db.upcast(), def)
|
||||
AttrsWithOwner::new(db.upcast(), def)
|
||||
}
|
||||
fn attr_id(self) -> AttrDefId {
|
||||
AttrDefId::$def_id(self.into())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue