Remove mention of unsupported '&mut self' for in a query group panic

This commit is contained in:
Taryn 2019-04-12 16:27:24 -05:00 committed by GitHub
parent e7223f480a
commit 9913b0300e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ pub(crate) fn query_group(args: TokenStream, input: TokenStream) -> TokenStream
match iter.next() {
Some(FnArg::SelfRef(sr)) if sr.mutability.is_none() => (),
_ => panic!(
"first argument of query `{}` must be `&self` or `&mut self`",
"first argument of query `{}` must be `&self`",
method.sig.ident
),
}