Skip to content

Commit

Permalink
rustfmt for nightly changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Oct 18, 2019
1 parent 3a9abe3 commit 384c311
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cargo/core/package_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 384c311

Please sign in to comment.