mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-07-16 01:01:28 +00:00
Merge branch 'master' into gotham-master
Conflicts: example/Cargo.toml gotham_restful/Cargo.toml
This commit is contained in:
commit
694b45ea60
5 changed files with 36 additions and 24 deletions
|
@ -47,7 +47,7 @@ impl FromStr for Method
|
|||
"Update" | "update" => Ok(Self::Update),
|
||||
"DeleteAll" | "delete_all" => Ok(Self::DeleteAll),
|
||||
"Delete" | "delete" => Ok(Self::Delete),
|
||||
_ => Err("unknown method".to_string())
|
||||
_ => Err(format!("Unknown method: `{}'", str))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue