Skip to content

Commit d9af498

Browse files
authored
revert: remove test code that shouldn't have been merged (#782)
1 parent 439d1c5 commit d9af498

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

src/version.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@ impl Version {
4343
}
4444

4545
#[derive(PartialEq, PartialOrd, Copy, Clone, Eq, Ord, Hash)]
46-
#[non_exhaustive]
4746
enum Http {
4847
Http09,
4948
Http10,
5049
Http11,
5150
H2,
5251
H3,
53-
//__NonExhaustive,
52+
__NonExhaustive,
5453
}
5554

5655
impl Default for Version {
@@ -70,7 +69,7 @@ impl fmt::Debug for Version {
7069
Http11 => "HTTP/1.1",
7170
H2 => "HTTP/2.0",
7271
H3 => "HTTP/3.0",
73-
//__NonExhaustive => unreachable!(),
72+
__NonExhaustive => unreachable!(),
7473
})
7574
}
7675
}

tests/match_patterns.rs

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)