rustfmt for nightly changes.

This commit is contained in:
Eric Huss 2019-10-18 14:20:01 -07:00
parent 3a9abe3f06
commit 384c311692

View File

@ -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 {