mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-02-02 09:46:06 +00:00
format
This commit is contained in:
parent
378090acc8
commit
3f74f36418
2 changed files with 5 additions and 3 deletions
|
@ -319,7 +319,7 @@ impl<A: AllowedOptions> SalsaStruct<A> {
|
|||
let field_getter = field.get_name();
|
||||
let field_ty = field.ty();
|
||||
|
||||
if self.is_identity_field(field){
|
||||
if self.is_identity_field(field) {
|
||||
parse_quote_spanned! {field.field.span() =>
|
||||
debug_struct = debug_struct.field(
|
||||
#field_name_string,
|
||||
|
@ -331,7 +331,7 @@ impl<A: AllowedOptions> SalsaStruct<A> {
|
|||
)
|
||||
);
|
||||
}
|
||||
}else{
|
||||
} else {
|
||||
parse_quote_spanned! {field.field.span() =>
|
||||
if _include_all_fields {
|
||||
debug_struct = debug_struct.field(
|
||||
|
|
|
@ -51,6 +51,8 @@ fn input() {
|
|||
|
||||
// all fields
|
||||
let actual = format!("{:?}", complex_struct.debug_all(&db));
|
||||
let expected = expect![[r#"ComplexStruct { [salsa id]: 0, my_input: MyInput { [salsa id]: 0, field: 22 }, not_salsa: NotSalsa { field: "it's salsa time" } }"#]];
|
||||
let expected = expect![[
|
||||
r#"ComplexStruct { [salsa id]: 0, my_input: MyInput { [salsa id]: 0, field: 22 }, not_salsa: NotSalsa { field: "it's salsa time" } }"#
|
||||
]];
|
||||
expected.assert_eq(&actual);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue