mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
switch source-binders to Module
This commit is contained in:
parent
147b0f94e6
commit
8c4d277036
2 changed files with 20 additions and 9 deletions
|
@ -4,7 +4,6 @@ use crate::{HirFileId, db::HirDatabase, Crate, CrateDependency, AsName, DefId, D
|
|||
|
||||
use crate::code_model_api::Module;
|
||||
|
||||
|
||||
impl Crate {
|
||||
pub(crate) fn new(crate_id: CrateId) -> Crate {
|
||||
Crate { crate_id }
|
||||
|
@ -45,7 +44,7 @@ impl Crate {
|
|||
}
|
||||
|
||||
impl Module {
|
||||
fn new(def_id: DefId) -> Self {
|
||||
pub(crate) fn new(def_id: DefId) -> Self {
|
||||
crate::code_model_api::Module { def_id }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue