Skip to content

Commit 70586be

Browse files
committed
tests: rust: time: Fix various C formatting errors
Too much rust code formatting leaks into my C. Fix these various whitespace errors. Signed-off-by: David Brown <[email protected]>
1 parent 95e67f1 commit 70586be

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/time/src/times.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ const struct time_entry time_entries[] = {
4444
.name = "Duration " #unit " " #n, \
4545
.units = UNIT_DUR_ ## unit, \
4646
.uvalue = n, \
47-
.value = K_ ## unit(n) , \
47+
.value = K_ ## unit(n), \
4848
}
49-
// Test various values near typical clock boundaries.
49+
/* Test various values near typical clock boundaries. */
5050
DUR_TEST(MSEC, 1),
5151
DUR_TEST(MSEC, 2),
5252
DUR_TEST(MSEC, 99),
@@ -83,12 +83,14 @@ const struct time_entry time_entries[] = {
8383
/* Return the indexed time entry. It is up to the Rust code to detect the null name, and handle it
8484
* properly.
8585
*/
86-
const struct time_entry *get_time_entry(uintptr_t index) {
86+
const struct time_entry *get_time_entry(uintptr_t index)
87+
{
8788
return &time_entries[index];
8889
}
8990

9091
/* The abs timeout is not constant, so provide this wrapper function.
9192
*/
92-
const k_timeout_t ms_to_abs_timeout(int64_t ms) {
93+
const k_timeout_t ms_to_abs_timeout(int64_t ms)
94+
{
9395
return K_TIMEOUT_ABS_MS(ms);
9496
}

0 commit comments

Comments
 (0)