Skip to content

Commit 32564c5

Browse files
committed
receive: minor change in reblock
1 parent e000207 commit 32564c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/receive/reblock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pub fn start<ClientNew, ClientEnd>(
1414
let nb_packets = usize::try_from(receiver.raptorq.nb_packets())
1515
.map_err(|e| receive::Error::Other(format!("nb_packets: {e}")))?;
1616

17-
let mut blocks_data = vec![Vec::with_capacity(nb_packets); usize::from(u8::MAX) + 1];
18-
let mut blocks_ignore = vec![true; usize::from(u8::MAX) + 1];
17+
let mut blocks_data = vec![Vec::with_capacity(nb_packets); u8::MAX as usize + 1];
18+
let mut blocks_ignore = [true; u8::MAX as usize + 1];
1919

2020
let mut cur_id: u8 = 0;
2121

0 commit comments

Comments
 (0)