mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
use Source for impl block
This commit is contained in:
parent
f411c2988d
commit
a6e339e822
5 changed files with 20 additions and 17 deletions
|
@ -442,11 +442,8 @@ impl HasSource for Union {
|
|||
}
|
||||
|
||||
impl Union {
|
||||
pub fn source(
|
||||
self,
|
||||
db: &(impl DefDatabase + AstDatabase),
|
||||
) -> (HirFileId, TreeArc<ast::StructDef>) {
|
||||
self.id.source(db)
|
||||
pub fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::StructDef>> {
|
||||
self.id.source(db).into()
|
||||
}
|
||||
|
||||
pub fn name(self, db: &impl DefDatabase) -> Option<Name> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue