api-macro: fix warnigns
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
cff04a4502
commit
4de22b9728
@ -443,6 +443,7 @@ pub enum OptionType {
|
||||
|
||||
/// An updater type uses its "base" type's field's updaters to determine whether the field is
|
||||
/// supposed to be an option.
|
||||
#[allow(dead_code)]
|
||||
Updater(Box<syn::Type>),
|
||||
}
|
||||
|
||||
|
@ -392,15 +392,15 @@ impl Parse for JSONMapEntry {
|
||||
|
||||
/// We get macro attributes like `#[doc = "TEXT"]` with the `=` included.
|
||||
pub struct BareAssignment<T: Parse> {
|
||||
pub token: Token![=],
|
||||
pub content: T,
|
||||
pub _token: Token![=],
|
||||
pub _content: T,
|
||||
}
|
||||
|
||||
impl<T: Parse> Parse for BareAssignment<T> {
|
||||
fn parse(input: ParseStream) -> syn::Result<Self> {
|
||||
Ok(Self {
|
||||
token: input.parse()?,
|
||||
content: input.parse()?,
|
||||
_token: input.parse()?,
|
||||
_content: input.parse()?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user