mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Cleanup Crate API
This commit is contained in:
parent
ffcdd25cc8
commit
08d3166c8b
5 changed files with 42 additions and 32 deletions
|
@ -14,8 +14,8 @@ use crate::{
|
|||
};
|
||||
|
||||
impl From<ra_db::CrateId> for Crate {
|
||||
fn from(crate_id: ra_db::CrateId) -> Self {
|
||||
Crate { crate_id }
|
||||
fn from(id: ra_db::CrateId) -> Self {
|
||||
Crate { id }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue