Skip to content

Commit 7b4737f

Browse files
committed
Auto merge of #11585 - hi-rustin:rustin-patch-typo, r=ehuss
Fix typo
2 parents 88f1429 + 7be22aa commit 7b4737f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cargo/core/package.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ pub const MANIFEST_PREAMBLE: &str = "\
4848
/// Information about a package that is available somewhere in the file system.
4949
///
5050
/// A package is a `Cargo.toml` file plus all the files that are part of it.
51-
//
52-
// TODO: is `manifest_path` a relic?
5351
#[derive(Clone)]
5452
pub struct Package {
5553
inner: Rc<PackageInner>,
5654
}
5755

5856
#[derive(Clone)]
57+
// TODO: is `manifest_path` a relic?
5958
struct PackageInner {
6059
/// The package's manifest.
6160
manifest: Manifest,

src/cargo/sources/registry/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ impl<'cfg> RegistryIndex<'cfg> {
459459
// is not known here.
460460
.filter(|s| (online || load.is_crate_downloaded(s.summary.package_id())))
461461
// Next filter out all yanked packages. Some yanked packages may
462-
// leak throguh if they're in a whitelist (aka if they were
462+
// leak through if they're in a whitelist (aka if they were
463463
// previously in `Cargo.lock`
464464
.filter(|s| !s.yanked || yanked_whitelist.contains(&s.summary.package_id()))
465465
.map(|s| s.summary.clone());

0 commit comments

Comments
 (0)