1
0
Fork 0
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:
Dominic 2020-04-15 22:55:26 +02:00
commit 694b45ea60
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
5 changed files with 36 additions and 24 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))
}
}
}