From da01ff1a72e35dd71d3583d32059392e474d930d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 15 Apr 2020 09:21:04 +0200 Subject: [PATCH] style cleanup Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/method.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index e79929d8..a29a42e2 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -13,8 +13,8 @@ use failure::Error; use proc_macro2::{Span, TokenStream}; use quote::{quote, quote_spanned}; use syn::spanned::Spanned; -use syn::Ident; use syn::visit_mut::{self, VisitMut}; +use syn::Ident; use super::{Schema, SchemaItem}; use crate::util::{self, FieldName, JSONObject, JSONValue}; @@ -517,8 +517,8 @@ impl<'a> DefaultParameters<'a> { match self.0.find_obj_property_by_ident(¶m_name.value()) { Some((_ident, _optional, schema)) => match schema.find_schema_property("default") { Some(def) => Ok(def.clone()), - None => bail!(param_name => "no default found in schema") - } + None => bail!(param_name => "no default found in schema"), + }, None => bail!(param_name => "todo"), } }