We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875e012 commit 8d610e1Copy full SHA for 8d610e1
crates/cargo-test-support/src/publish.rs
@@ -75,8 +75,10 @@ fn _validate_upload(
75
f.read_exact(&mut json_bytes).expect("read JSON data");
76
let actual_json = serde_json::from_slice(&json_bytes).expect("uploaded JSON should be valid");
77
let expected_json = serde_json::from_str(expected_json).expect("expected JSON does not parse");
78
- find_json_mismatch(&expected_json, &actual_json)
79
- .expect("uploaded JSON did not match expected JSON");
+
+ if let Err(e) = find_json_mismatch(&expected_json, &actual_json) {
80
+ panic!("{}", e);
81
+ }
82
83
// 32-bit little-endian integer of length of crate file.
84
let crate_sz = read_le_u32(&mut f).expect("read crate length");
0 commit comments