Fixed formatting
This commit is contained in:
parent
973f0a5bae
commit
0b3fbb5533
|
@ -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| {
|
||||
|
|
|
@ -248,7 +248,6 @@ fn test_transparent_struct_error_message() {
|
|||
);
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, FromPyObject)]
|
||||
pub enum Foo<'a> {
|
||||
TupleVar(usize, String),
|
||||
|
|
Loading…
Reference in a new issue