Fixed formatting

This commit is contained in:
R2D2 2021-06-07 10:26:58 +02:00
parent 973f0a5bae
commit 0b3fbb5533
2 changed files with 7 additions and 7 deletions

View file

@ -269,7 +269,8 @@ impl<'a> Container<'a> {
FieldGetter::GetItem(Some(key)) => quote!(get_item(#key)),
FieldGetter::GetItem(None) => quote!(get_item(stringify!(#ident))),
};
let conversion_error_msg = format!("failed to extract field {}.{}", quote!(#self_ty), ident);
let conversion_error_msg =
format!("failed to extract field {}.{}", quote!(#self_ty), ident);
let get_field = quote!(obj.#getter?);
let extractor = match &attrs.from_py_with {
None => quote!(#get_field.extract().map_err(|inner| {

View file

@ -248,7 +248,6 @@ fn test_transparent_struct_error_message() {
);
}
#[derive(Debug, FromPyObject)]
pub enum Foo<'a> {
TupleVar(usize, String),