diff --git a/crates/cargo-util-schemas/src/core/package_id_spec.rs b/crates/cargo-util-schemas/src/core/package_id_spec.rs index 18e1e8211d6..72d72149e2a 100644 --- a/crates/cargo-util-schemas/src/core/package_id_spec.rs +++ b/crates/cargo-util-schemas/src/core/package_id_spec.rs @@ -641,12 +641,12 @@ mod tests { ErrorKind::UnexpectedQueryString(_) ); err!( - "registry+https://github.com/rust-lang/cargo#0.52.0?branch=dev", - ErrorKind::PartialVersion(_) + "registry+https://github.com/rust-lang/cargo?branch=dev#0.52.0", + ErrorKind::UnexpectedQueryString(_) ); err!( - "sparse+https://github.com/rust-lang/cargo#0.52.0?branch=dev", - ErrorKind::PartialVersion(_) + "sparse+https://github.com/rust-lang/cargo?branch=dev#0.52.0", + ErrorKind::UnexpectedQueryString(_) ); err!("@1.2.3", ErrorKind::NameValidation(_)); err!("registry+https://github.com", ErrorKind::NameValidation(_));