aboutsummaryrefslogtreecommitdiffstats
path: root/components/to_shmem_derive/to_shmem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/to_shmem_derive/to_shmem.rs')
-rw-r--r--components/to_shmem_derive/to_shmem.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/components/to_shmem_derive/to_shmem.rs b/components/to_shmem_derive/to_shmem.rs
index 5021476aad4..1335ef4eea6 100644
--- a/components/to_shmem_derive/to_shmem.rs
+++ b/components/to_shmem_derive/to_shmem.rs
@@ -12,10 +12,7 @@ pub fn derive(mut input: syn::DeriveInput) -> TokenStream {
let attrs = cg::parse_input_attrs::<ShmemInputAttrs>(&input);
if !attrs.no_bounds {
for param in input.generics.type_params() {
- cg::add_predicate(
- &mut where_clause,
- parse_quote!(#param: ::to_shmem::ToShmem),
- );
+ cg::add_predicate(&mut where_clause, parse_quote!(#param: ::to_shmem::ToShmem));
}
}
for variant in Structure::new(&input).variants() {
@@ -23,10 +20,7 @@ pub fn derive(mut input: syn::DeriveInput) -> TokenStream {
let attrs = cg::parse_field_attrs::<ShmemFieldAttrs>(&binding.ast());
if attrs.field_bound {
let ty = &binding.ast().ty;
- cg::add_predicate(
- &mut where_clause,
- parse_quote!(#ty: ::to_shmem::ToShmem),
- )
+ cg::add_predicate(&mut where_clause, parse_quote!(#ty: ::to_shmem::ToShmem))
}
}
}