Skip to content

Commit 4e35586

Browse files
committed
test(port_std): address the clippy::uninlined_format_args lint
1 parent eda44f6 commit 4e35586

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/r3_port_std/src/ums/tests.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ fn preempt() {
105105
.zip(new_counters.iter())
106106
.enumerate()
107107
.all(|(i, (old, new))| (thread_i == i) == (old != new)),
108-
"old_counters = {:?}, new_counters = {:?}",
109-
old_counters,
110-
new_counters,
108+
"old_counters = {old_counters:?}, new_counters = {new_counters:?}",
111109
);
112110
};
113111

@@ -226,8 +224,7 @@ fn yield_ring(count: usize) {
226224

227225
assert!(
228226
new_counters.iter().all(|&c| c != 0),
229-
"new_counters = {:?}",
230-
new_counters,
227+
"new_counters = {new_counters:?}",
231228
);
232229

233230
st.done.store(true, Ordering::Relaxed);

0 commit comments

Comments
 (0)