Skip to content

Commit

Permalink
Run clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Nov 26, 2023
1 parent 57af383 commit a3a0204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/decode_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn benchmark(symbol_size: u16, overhead: f64) -> u64 {
let config = ObjectTransmissionInformation::new(0, symbol_size, 0, 1, 1);
let encoder = SourceBlockEncoder::new2(1, &config, &data);
let elements_and_overhead = (symbol_count as f64 * (1.0 + overhead)) as u32;
let mut packets = encoder.repair_packets(0, (iterations as u32 * elements_and_overhead));
let mut packets = encoder.repair_packets(0, iterations as u32 * elements_and_overhead);
let now = Instant::now();
for _ in 0..iterations {
let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64);
Expand Down
2 changes: 1 addition & 1 deletion src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ mod codec_tests {
let config = ObjectTransmissionInformation::new(0, symbol_size, 0, 1, 1);
let encoder = SourceBlockEncoder::new2(1, &config, &data);
let elements_and_overhead = (symbol_count as f64 * (1.0 + overhead)) as u32;
let mut packets = encoder.repair_packets(0, (iterations as u32 * elements_and_overhead));
let mut packets = encoder.repair_packets(0, iterations as u32 * elements_and_overhead);
for _ in 0..iterations {
let mut decoder = SourceBlockDecoder::new2(1, &config, elements as u64);
let start = packets.len() - elements_and_overhead as usize;
Expand Down

0 comments on commit a3a0204

Please sign in to comment.