Inline 'Method::supports_payload()'.

This commit is contained in:
Sergio Benitez 2017-07-03 01:38:07 -07:00
parent 6781c329ea
commit 02f466fa17
1 changed files with 1 additions and 0 deletions

View File

@ -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,