Skip to content

Commit

Permalink
Auto merge of rust-lang#11585 - hi-rustin:rustin-patch-typo, r=ehuss
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
bors committed Jan 16, 2023
2 parents 88f1429 + 7be22aa commit 7b4737f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cargo/core/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PackageInner>,
}

#[derive(Clone)]
// TODO: is `manifest_path` a relic?
struct PackageInner {
/// The package's manifest.
manifest: Manifest,
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 7b4737f

Please sign in to comment.