clippy: Enable self_named_constructors rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-09 22:31:21 +09:00
parent d24bb7e289
commit 7669619f9a
5 changed files with 4 additions and 5 deletions

View file

@ -317,7 +317,7 @@ fn parse_comma_sep<S>(subtree: &tt::Subtree<S>) -> Vec<SmolStr> {
}
impl AttrsWithOwner {
pub fn attrs_with_owner(db: &dyn DefDatabase, owner: AttrDefId) -> Self {
pub fn new(db: &dyn DefDatabase, owner: AttrDefId) -> Self {
Self { attrs: db.attrs(owner), owner }
}