We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc97db1 commit 0a14f71Copy full SHA for 0a14f71
tests/run-make/unstable-feature-usage-metrics/rmake.rs
@@ -51,9 +51,9 @@ fn test_metrics_dump() {
51
let json_path =
52
metrics.pop().expect("there should be one metrics file in the output directory");
53
54
- assert_eq!(
55
- 0,
56
- metrics.len(),
+ // After the `pop` above, there should be no files left.
+ assert!(
+ metrics.is_empty(),
57
"there should be no more than one metrics file in the output directory"
58
);
59
0 commit comments