Skip to content

Commit 9f652c0

Browse files
committed
formatting
1 parent 036004f commit 9f652c0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pyo3-macros-backend/src/pyclass.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,37 @@ use std::borrow::Cow;
22
use std::fmt::Debug;
33

44
use proc_macro2::{Ident, Span, TokenStream};
5-
use quote::{ToTokens, format_ident, quote, quote_spanned};
5+
use quote::{format_ident, quote, quote_spanned, ToTokens};
66
use syn::ext::IdentExt;
77
use syn::parse::{Parse, ParseStream};
88
use syn::punctuated::Punctuated;
9-
use syn::{ImplItemFn, Result, Token, parse_quote, parse_quote_spanned, spanned::Spanned};
9+
use syn::{parse_quote, parse_quote_spanned, spanned::Spanned, ImplItemFn, Result, Token};
1010

1111
use crate::attributes::kw::frozen;
1212
use crate::attributes::{
13-
self, CrateAttribute, ExtendsAttribute, FreelistAttribute, ModuleAttribute, NameAttribute,
14-
NameLitStr, RenameAllAttribute, StrFormatterAttribute, kw, take_pyo3_options,
13+
self, kw, take_pyo3_options, CrateAttribute, ExtendsAttribute, FreelistAttribute,
14+
ModuleAttribute, NameAttribute, NameLitStr, RenameAllAttribute, StrFormatterAttribute,
1515
};
1616
use crate::combine_errors::CombineErrors;
1717
#[cfg(feature = "experimental-inspect")]
1818
use crate::introspection::{
19-
PythonIdentifier, class_introspection_code, function_introspection_code, introspection_id_const,
19+
class_introspection_code, function_introspection_code, introspection_id_const, PythonIdentifier,
2020
};
2121
use crate::konst::{ConstAttributes, ConstSpec};
2222
use crate::method::{FnArg, FnSpec, PyArg, RegularArg};
2323
use crate::pyfunction::ConstructorAttribute;
2424
#[cfg(feature = "experimental-inspect")]
2525
use crate::pyfunction::FunctionSignature;
26-
use crate::pyimpl::{PyClassMethodsType, gen_py_const, get_cfg_attributes};
26+
use crate::pyimpl::{gen_py_const, get_cfg_attributes, PyClassMethodsType};
2727
#[cfg(feature = "experimental-inspect")]
2828
use crate::pymethod::field_python_name;
2929
use crate::pymethod::{
30-
__GETITEM__, __HASH__, __INT__, __LEN__, __NEW__, __REPR__, __RICHCMP__, __STR__,
31-
MethodAndMethodDef, MethodAndSlotDef, PropertyType, SlotDef, impl_py_class_attribute,
32-
impl_py_getter_def, impl_py_setter_def,
30+
impl_py_class_attribute, impl_py_getter_def, impl_py_setter_def, MethodAndMethodDef,
31+
MethodAndSlotDef, PropertyType, SlotDef, __GETITEM__, __HASH__, __INT__, __LEN__, __NEW__,
32+
__REPR__, __RICHCMP__, __STR__,
3333
};
3434
use crate::pyversions::{is_abi3_before, is_py_before};
35-
use crate::utils::{self, Ctx, PythonDoc, apply_renaming_rule};
35+
use crate::utils::{self, apply_renaming_rule, Ctx, PythonDoc};
3636
use crate::PyFunctionOptions;
3737

3838
/// If the class is derived from a Rust `struct` or `enum`.

0 commit comments

Comments
 (0)