mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
remove duplicate data from CrateOrigin
This commit is contained in:
parent
a654955159
commit
df261c10b9
4 changed files with 26 additions and 39 deletions
|
@ -116,9 +116,9 @@ impl ops::Deref for CrateName {
|
|||
#[derive(Debug, Clone)]
|
||||
pub enum CrateOrigin {
|
||||
/// Crates that are from crates.io official registry,
|
||||
CratesIo { name: String, version: String, repo: Option<String> },
|
||||
CratesIo { repo: Option<String> },
|
||||
/// Crates that are provided by the language, like std, core, proc-macro, ...
|
||||
Lang(String),
|
||||
Lang,
|
||||
/// Crates that we don't know their origin.
|
||||
// Idealy this enum should cover all cases, and then we remove this variant.
|
||||
Unknown,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue