mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
rustfmt for nightly changes.
This commit is contained in:
parent
3a9abe3f06
commit
384c311692
@ -226,7 +226,10 @@ mod tests {
|
||||
fn debug() {
|
||||
let loc = CRATES_IO_INDEX.into_url().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#"
|
||||
PackageId {
|
||||
|
Loading…
x
Reference in New Issue
Block a user