mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-07-16 01:01:28 +00:00
remove some more expect/panic stuff
This commit is contained in:
parent
fbcc626478
commit
c3e2185396
2 changed files with 32 additions and 20 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