Skip to content

Commit

Permalink
Add missing where clause to guarentee correct derivation of Send
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Dec 13, 2021
1 parent 60833da commit a28ceb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mbedtls/src/wrapper_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ macro_rules! define_struct {
);

as_item!(
unsafe impl<$($g)*> Send for $name<$($g)*> {}
unsafe impl<$($g)*> Send for $name<$($g)*>
where $($g: Send)*
{}
);
};

Expand Down

0 comments on commit a28ceb1

Please sign in to comment.