Skip to content

Commit fb72cbb

Browse files
committed
Send implementation shouldn't require T to be Sized.
1 parent 8b4931a commit fb72cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ impl<T: ?Sized> SharedMmioPointer<'_, T> {
252252
// SAFETY: A `SharedMmioPointer` always originates either from a reference or from a
253253
// `UniqueMmioPointer`. The caller of `UniqueMmioPointer::new` promises that the MMIO registers can
254254
// be accessed from any thread.
255-
unsafe impl<T: Send + Sync> Send for SharedMmioPointer<'_, T> {}
255+
unsafe impl<T: ?Sized + Send + Sync> Send for SharedMmioPointer<'_, T> {}
256256

257257
impl<'a, T: ?Sized> From<&'a T> for SharedMmioPointer<'a, T> {
258258
fn from(r: &'a T) -> Self {

0 commit comments

Comments
 (0)