diff --git a/src/cargo/core/package.rs b/src/cargo/core/package.rs index f3fed18484e..1c7532cb3e6 100644 --- a/src/cargo/core/package.rs +++ b/src/cargo/core/package.rs @@ -48,14 +48,13 @@ pub const MANIFEST_PREAMBLE: &str = "\ /// Information about a package that is available somewhere in the file system. /// /// A package is a `Cargo.toml` file plus all the files that are part of it. -// -// TODO: is `manifest_path` a relic? #[derive(Clone)] pub struct Package { inner: Rc, } #[derive(Clone)] +// TODO: is `manifest_path` a relic? struct PackageInner { /// The package's manifest. manifest: Manifest, diff --git a/src/cargo/sources/registry/index.rs b/src/cargo/sources/registry/index.rs index f5ac24944e8..633ed74b4d6 100644 --- a/src/cargo/sources/registry/index.rs +++ b/src/cargo/sources/registry/index.rs @@ -459,7 +459,7 @@ impl<'cfg> RegistryIndex<'cfg> { // is not known here. .filter(|s| (online || load.is_crate_downloaded(s.summary.package_id()))) // Next filter out all yanked packages. Some yanked packages may - // leak throguh if they're in a whitelist (aka if they were + // leak through if they're in a whitelist (aka if they were // previously in `Cargo.lock` .filter(|s| !s.yanked || yanked_whitelist.contains(&s.summary.package_id())) .map(|s| s.summary.clone());