Clean up and fix missing comma for request query map

This commit is contained in:
Devin Ragotzy 2020-08-05 17:46:53 -04:00 committed by Jonas Platte
parent e36149aea1
commit c980644d77
2 changed files with 4 additions and 3 deletions

View File

@ -126,7 +126,7 @@ impl ToTokens for Api {
let field_name = field.ident.as_ref().expect("expected field to have an identifier");
quote! {
#field_name: request_query
#field_name: request_query,
}
} else {
self.request.request_init_query_fields()
@ -247,10 +247,10 @@ impl ToTokens for Api {
let api = quote! {
// FIXME: These can't conflict with other imports, but it would still be nice not to
// bring anything into scope that code outside the macro could then rely on.
// use ::std::convert::TryInto as _;
use ::std::convert::TryInto as _;
use ::ruma_api::exports::serde::de::Error as _;
// use ::ruma_api::exports::serde::Deserialize as _;
use ::ruma_api::exports::serde::Deserialize as _;
use ::ruma_api::Endpoint as _;
#[doc = #request_doc]

View File

@ -36,6 +36,7 @@ pub struct FakeRequest<'a, T> {
pub bytes: &'a [u8],
pub recursive: &'a [Thing<'a, T>],
pub option: Option<&'a [u8]>,
pub depth: Option<&'a [(&'a str, &'a str)]>,
}
#[derive(Outgoing)]