Skip to content

Commit 35ce5c4

Browse files
committed
cargo fmt
1 parent 2150e47 commit 35ce5c4

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/ucp/endpoint/util.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,16 @@ mod test {
363363
(vec![0u8], 2u64, 10),
364364
(vec![1, 2, 3, 4, 5], 3u64, 5),
365365
((0..128).collect::<Vec<u8>>(), 4u64, 3),
366-
((0..1024).map(|x| (x % 256) as u8).collect::<Vec<u8>>(), 5u64, 2),
367-
((0..4096).map(|x| (x % 256) as u8).collect::<Vec<u8>>(), 6u64, 1),
366+
(
367+
(0..1024).map(|x| (x % 256) as u8).collect::<Vec<u8>>(),
368+
5u64,
369+
2,
370+
),
371+
(
372+
(0..4096).map(|x| (x % 256) as u8).collect::<Vec<u8>>(),
373+
6u64,
374+
1,
375+
),
368376
];
369377
for (data, tag, repeat) in test_cases {
370378
for _ in 0..repeat {
@@ -374,15 +382,23 @@ mod test {
374382
let mut recv_buf = vec![0u8; recv_len];
375383
tokio::join!(
376384
async {
377-
endpoint2.tag_write_stream(tag).write_all(&send_buf).await.unwrap();
385+
endpoint2
386+
.tag_write_stream(tag)
387+
.write_all(&send_buf)
388+
.await
389+
.unwrap();
378390
},
379391
async {
380392
worker1
381393
.tag_read_stream(tag)
382394
.read_exact(&mut recv_buf)
383395
.await
384396
.unwrap();
385-
assert_eq!(recv_buf, send_buf, "data mismatch for tag={}, len={}", tag, recv_len);
397+
assert_eq!(
398+
recv_buf, send_buf,
399+
"data mismatch for tag={}, len={}",
400+
tag, recv_len
401+
);
386402
}
387403
);
388404
}

0 commit comments

Comments
 (0)