mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-04 11:34:35 +00:00
rustfmt for nightly changes.
This commit is contained in:
parent
3a9abe3f06
commit
384c311692
@ -226,7 +226,10 @@ mod tests {
|
|||||||
fn debug() {
|
fn debug() {
|
||||||
let loc = CRATES_IO_INDEX.into_url().unwrap();
|
let loc = CRATES_IO_INDEX.into_url().unwrap();
|
||||||
let pkg_id = PackageId::new("foo", "1.0.0", SourceId::for_registry(&loc).unwrap()).unwrap();
|
let pkg_id = PackageId::new("foo", "1.0.0", SourceId::for_registry(&loc).unwrap()).unwrap();
|
||||||
assert_eq!(r#"PackageId { name: "foo", version: "1.0.0", source: "registry `https://github.com/rust-lang/crates.io-index`" }"#, format!("{:?}", pkg_id));
|
assert_eq!(
|
||||||
|
r#"PackageId { name: "foo", version: "1.0.0", source: "registry `https://github.com/rust-lang/crates.io-index`" }"#,
|
||||||
|
format!("{:?}", pkg_id)
|
||||||
|
);
|
||||||
|
|
||||||
let expected = r#"
|
let expected = r#"
|
||||||
PackageId {
|
PackageId {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user