remove duplicate data from CrateOrigin

This commit is contained in:
hkalbasi 2021-11-29 11:10:39 +03:30
parent a654955159
commit df261c10b9
4 changed files with 26 additions and 39 deletions

View file

@ -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,