mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-18 20:54:29 -04:00
Implement variant on version to require catch-all (#159)
This commit is contained in:
committed by
Sean McArthur
parent
d9a06a6e94
commit
0cd6f5b118
@@ -49,6 +49,7 @@ enum Http {
|
||||
Http11,
|
||||
H2,
|
||||
H3,
|
||||
__NonExhaustive,
|
||||
}
|
||||
|
||||
impl Default for Version {
|
||||
@@ -68,6 +69,7 @@ impl fmt::Debug for Version {
|
||||
Http11 => "HTTP/1.1",
|
||||
H2 => "HTTP/2.0",
|
||||
H3 => "HTTP/3.0",
|
||||
__NonExhaustive => unreachable!(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user