Compare commits

...

1 Commits

Author SHA1 Message Date
muellerr b2d6fc7d2c cargo fmt
ci / Check formatting (push) Has been cancelled
ci / Check Documentation Build (push) Has been cancelled
ci / Clippy (push) Has been cancelled
ci / Check build (push) Has been cancelled
2026-05-18 13:30:44 +02:00
@@ -228,11 +228,7 @@ pub async fn blocking_tests_small(
} }
slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap(); slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap();
for (i, item) in buf.iter().enumerate().take(16) { for (i, item) in buf.iter().enumerate().take(16) {
assert_eq!( assert_eq!(*item, (i * 2) as u8, "slave did not send the expected data");
*item,
(i * 2) as u8,
"slave did not send the expected data"
);
} }
// Transfer in place test. // Transfer in place test.
@@ -249,11 +245,7 @@ pub async fn blocking_tests_small(
} }
slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap(); slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap();
for (i, item) in buf.iter().enumerate().take(16) { for (i, item) in buf.iter().enumerate().take(16) {
assert_eq!( assert_eq!(*item, (i * 2) as u8, "slave did not send the expected data");
*item,
(i * 2) as u8,
"slave did not send the expected data"
);
} }
40 40
} }
@@ -390,11 +382,7 @@ pub async fn blocking_tests_small_async(
} }
slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap(); slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap();
for (i, item) in buf.iter().enumerate().take(16) { for (i, item) in buf.iter().enumerate().take(16) {
assert_eq!( assert_eq!(*item, (i * 2) as u8, "slave did not send the expected data");
*item,
(i * 2) as u8,
"slave did not send the expected data"
);
} }
// Transfer in place test. // Transfer in place test.
@@ -411,11 +399,7 @@ pub async fn blocking_tests_small_async(
} }
slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap(); slave_rx_reader.read_exact(&mut buf[0..16]).await.unwrap();
for (i, item) in buf.iter().enumerate().take(16) { for (i, item) in buf.iter().enumerate().take(16) {
assert_eq!( assert_eq!(*item, (i * 2) as u8, "slave did not send the expected data");
*item,
(i * 2) as u8,
"slave did not send the expected data"
);
} }
40 40
} }