mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +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
|
@ -155,7 +155,7 @@ impl PartialEq for AstIdMap {
|
|||
impl Eq for AstIdMap {}
|
||||
|
||||
impl AstIdMap {
|
||||
pub(crate) fn ast_id_map(
|
||||
pub(crate) fn new(
|
||||
db: &dyn ExpandDatabase,
|
||||
file_id: span::HirFileId,
|
||||
) -> triomphe::Arc<AstIdMap> {
|
||||
|
|
|
@ -61,7 +61,7 @@ pub trait ExpandDatabase: SourceDatabase {
|
|||
#[salsa::input]
|
||||
fn proc_macros(&self) -> Arc<ProcMacros>;
|
||||
|
||||
#[salsa::invoke(AstIdMap::ast_id_map)]
|
||||
#[salsa::invoke(AstIdMap::new)]
|
||||
fn ast_id_map(&self, file_id: HirFileId) -> Arc<AstIdMap>;
|
||||
|
||||
/// Main public API -- parses a hir file, not caring whether it's a real
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue