Run cargo fmt
This commit is contained in:
parent
587176fe9f
commit
39bae201eb
4 changed files with 29 additions and 27 deletions
|
@ -27,7 +27,7 @@ pub struct Attrs {
|
|||
pub examples: Vec<syn::Path>,
|
||||
pub repr: Option<syn::Type>,
|
||||
pub crate_name: Option<syn::Path>,
|
||||
pub is_renamed: bool
|
||||
pub is_renamed: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -153,9 +153,7 @@ impl Attrs {
|
|||
}
|
||||
}
|
||||
|
||||
Meta(NameValue(m)) if m.path.is_ident("rename") => {
|
||||
self.is_renamed = true
|
||||
}
|
||||
Meta(NameValue(m)) if m.path.is_ident("rename") => self.is_renamed = true,
|
||||
|
||||
Meta(NameValue(m)) if m.path.is_ident("crate") && attr_type == "schemars" => {
|
||||
if let Ok(p) = parse_lit_into_path(errors, attr_type, "crate", &m.lit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue