mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Fix typo
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
abc6abe34d
commit
28c134c570
@ -459,7 +459,7 @@ impl<'cfg> RegistryIndex<'cfg> {
|
|||||||
// is not known here.
|
// is not known here.
|
||||||
.filter(|s| (online || load.is_crate_downloaded(s.summary.package_id())))
|
.filter(|s| (online || load.is_crate_downloaded(s.summary.package_id())))
|
||||||
// Next filter out all yanked packages. Some yanked packages may
|
// 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`
|
// previously in `Cargo.lock`
|
||||||
.filter(|s| !s.yanked || yanked_whitelist.contains(&s.summary.package_id()))
|
.filter(|s| !s.yanked || yanked_whitelist.contains(&s.summary.package_id()))
|
||||||
.map(|s| s.summary.clone());
|
.map(|s| s.summary.clone());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user