Skip to content

Commit 9a5e0b8

Browse files
authored
Merge pull request http-rs#339 from http-rs/extend-methods
Mark `Method` as non-exhaustive
2 parents 206b53e + caefc9a commit 9a5e0b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/method.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::str::FromStr;
99
/// [Mozilla docs]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
1010
/// [RFC7231, Section 4]: https://tools.ietf.org/html/rfc7231#section-4
1111
/// [HTTP Method Registry]: https://www.iana.org/assignments/http-methods/http-methods.xhtml
12+
#[non_exhaustive]
1213
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
1314
pub enum Method {
1415
/// The ACL method modifies the access control list (which can be read via the DAV:acl

0 commit comments

Comments
 (0)