1
0
Fork 0
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:
Dominic 2020-04-15 21:41:24 +02:00
parent fbcc626478
commit c3e2185396
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 32 additions and 20 deletions

View file

@ -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))
}
}
}