Skip to content

Commit 2a34e08

Browse files
committed
Make clippy happy
1 parent 90f45e2 commit 2a34e08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ macro_rules! test_seek_r {
245245
$r.seek_absgp(None, $absgp).unwrap();
246246
// Then go to the searched packet inside the page
247247
// We know that all groups of three packets form one.
248-
for _ in 0 .. ($absgp % 3) $o $m {
248+
#[allow(clippy::reversed_empty_ranges)]
249+
for _ in 0 .. (($absgp % 3) $o $m) {
249250
$r.read_packet().unwrap().unwrap();
250251
}
251252
// Now read the actual packet we are interested in and
@@ -464,7 +465,7 @@ fn test_issue_14() {
464465
let test_arr_2 = [2, 4, 8, 16, 32, 64, 128, 127, 126, 125, 124];
465466
let test_arr_3 = [3, 5, 9, 17, 33, 65, 129, 129, 127, 126, 125];
466467
{
467-
c.write_all(&[b'O']).unwrap();
468+
c.write_all(b"O").unwrap();
468469
let mut w = PacketWriter::new(&mut c);
469470
let np = PacketWriteEndInfo::NormalPacket;
470471
w.write_packet(&test_arr[..], 0xdeadb33f, np, 0).unwrap();

0 commit comments

Comments
 (0)