formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-12-05 11:32:48 +01:00
parent b81beb4dfb
commit 7c48247c58

View File

@ -8,7 +8,7 @@ use syn::parse::{Parse, ParseStream, Parser};
use syn::spanned::Spanned;
use syn::{ExprPath, Ident};
use crate::util::{JSONObject, JSONValue, FieldName};
use crate::util::{FieldName, JSONObject, JSONValue};
mod enums;
mod method;
@ -133,10 +133,7 @@ impl Schema {
}
}
fn find_obj_property_by_ident(
&self,
key: &str,
) -> Option<&(FieldName, bool, PropertySchema)> {
fn find_obj_property_by_ident(&self, key: &str) -> Option<&(FieldName, bool, PropertySchema)> {
self.as_object()
.and_then(|obj| obj.find_property_by_ident(key))
}