mirror of https://github.com/rwf2/Rocket.git
Inline 'Method::supports_payload()'.
This commit is contained in:
parent
6781c329ea
commit
02f466fa17
|
@ -50,6 +50,7 @@ impl Method {
|
|||
/// assert_eq!(Method::Get.supports_payload(), false);
|
||||
/// assert_eq!(Method::Post.supports_payload(), true);
|
||||
/// ```
|
||||
#[inline]
|
||||
pub fn supports_payload(&self) -> bool {
|
||||
match *self {
|
||||
Put | Post | Delete | Patch => true,
|
||||
|
|
Loading…
Reference in New Issue