mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-14 13:13:20 +00:00
formatting fixup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b81beb4dfb
commit
7c48247c58
@ -8,7 +8,7 @@ use syn::parse::{Parse, ParseStream, Parser};
|
|||||||
use syn::spanned::Spanned;
|
use syn::spanned::Spanned;
|
||||||
use syn::{ExprPath, Ident};
|
use syn::{ExprPath, Ident};
|
||||||
|
|
||||||
use crate::util::{JSONObject, JSONValue, FieldName};
|
use crate::util::{FieldName, JSONObject, JSONValue};
|
||||||
|
|
||||||
mod enums;
|
mod enums;
|
||||||
mod method;
|
mod method;
|
||||||
@ -133,10 +133,7 @@ impl Schema {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn find_obj_property_by_ident(
|
fn find_obj_property_by_ident(&self, key: &str) -> Option<&(FieldName, bool, PropertySchema)> {
|
||||||
&self,
|
|
||||||
key: &str,
|
|
||||||
) -> Option<&(FieldName, bool, PropertySchema)> {
|
|
||||||
self.as_object()
|
self.as_object()
|
||||||
.and_then(|obj| obj.find_property_by_ident(key))
|
.and_then(|obj| obj.find_property_by_ident(key))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user