Clean-up method parsing error.

This commit is contained in:
Sergio Benitez 2016-09-28 20:41:23 -07:00
parent a6cd1bd5bd
commit 7544af6e6d
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ fn parse_method(ecx: &ExtCtxt, meta_item: &NestedMetaItem) -> Spanned<Method> {
return span(method, word.span()); return span(method, word.span());
} }
} else { } else {
let msg = format!("{} is not a valid HTTP method.", word.name()); let msg = format!("'{}' is not a valid HTTP method.", word.name());
ecx.span_err(word.span(), &msg); ecx.span_err(word.span(), &msg);
} }
} }