- match request.method() {
- &cgi::http::Method::HEAD => prompt_for_vote(dir, request).map(strip_body),
- &cgi::http::Method::GET => prompt_for_vote(dir, request),
- &cgi::http::Method::PUT => record_vote(dir, request),
+ match *request.method() {
+ cgi::http::Method::HEAD => prompt_for_vote(dir, request).map(strip_body),
+ cgi::http::Method::GET => prompt_for_vote(dir, request),
+ cgi::http::Method::PUT => record_vote(dir, request),