We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4137f commit f258569Copy full SHA for f258569
src/cargo/sources/registry/index.rs
@@ -708,9 +708,9 @@ impl<'a> SummariesCache<'a> {
708
.get(..4)
709
.ok_or_else(|| anyhow::anyhow!("cache expected 4 bytes for index version"))?;
710
let index_v = u32::from_le_bytes(index_v_bytes.try_into().unwrap());
711
- if index_v > INDEX_V_MAX {
+ if index_v != INDEX_V_MAX {
712
bail!(
713
- "index format version {} is greater than the newest version I know ({})",
+ "index format version {} doesn't match the version I know ({})",
714
index_v,
715
INDEX_V_MAX
716
);
0 commit comments