We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacd57a commit 25900c2Copy full SHA for 25900c2
library/alloctests/tests/num.rs
@@ -3,9 +3,9 @@ use std::str::FromStr;
3
4
fn assert_nb<Int: ToString + FromStr + Debug + Display + Eq>(value: Int) {
5
let s = value.to_string();
6
- let s2 = format!("{}", value);
+ let s2 = format!("s: {}.", value);
7
8
- assert_eq!(s, s2);
+ assert_eq!(format!("s: {s}."), s2);
9
let Ok(ret) = Int::from_str(&s) else {
10
panic!("failed to convert into to string");
11
};
0 commit comments