From 7b3de17d811cf7ab21d425fa24a22103abb32dda Mon Sep 17 00:00:00 2001 From: kngwyu Date: Mon, 10 Feb 2020 18:18:44 +0900 Subject: [PATCH] Run cargo fmt --- pyo3-derive-backend/src/pymethod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyo3-derive-backend/src/pymethod.rs b/pyo3-derive-backend/src/pymethod.rs index 8067aa6c..5827f43c 100644 --- a/pyo3-derive-backend/src/pymethod.rs +++ b/pyo3-derive-backend/src/pymethod.rs @@ -290,10 +290,10 @@ pub(crate) fn impl_wrap_getter( quote!({ use pyo3::derive_utils::GetPropertyValue; (&_slf.#name).get_property_value(_py) - }) + }), ) } - PropertyType::Function(spec) => (spec.python_name.clone(), impl_call_getter(&spec)?) + PropertyType::Function(spec) => (spec.python_name.clone(), impl_call_getter(&spec)?), }; Ok(quote! { @@ -356,7 +356,7 @@ pub(crate) fn impl_wrap_setter( let name = field.ident.as_ref().unwrap(); (name.unraw(), quote!({ _slf.#name = _val; Ok(()) })) } - PropertyType::Function(spec) => (spec.python_name.clone(), impl_call_setter(&spec)?) + PropertyType::Function(spec) => (spec.python_name.clone(), impl_call_setter(&spec)?), }; Ok(quote! {