Skip to content

Commit a28ceb1

Browse files
committed
Add missing where clause to guarentee correct derivation of Send
1 parent 60833da commit a28ceb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mbedtls/src/wrapper_macros.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ macro_rules! define_struct {
179179
);
180180

181181
as_item!(
182-
unsafe impl<$($g)*> Send for $name<$($g)*> {}
182+
unsafe impl<$($g)*> Send for $name<$($g)*>
183+
where $($g: Send)*
184+
{}
183185
);
184186
};
185187

0 commit comments

Comments
 (0)