Skip to content

Commit 4ef9771

Browse files
committed
add asserion on pushed elements
1 parent 8ae4acb commit 4ef9771

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bsp/src/boards/std.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ pub mod hw_tasks {
3838
fmt::debug!("client connected {}", addr);
3939
client_connected = true;
4040
}
41-
producer.push_slice(&buf[..nbytes]);
41+
let npushed = producer.push_slice(&buf[..nbytes]);
42+
43+
assert_eq!(npushed, nbytes);
4244
}
4345
}
4446

0 commit comments

Comments
 (0)