Skip to content

Commit 89558f1

Browse files
authored
Revert "fix(ffi): add repr(transparent) to hyper_context (#3191)" (#3193)
This reverts commit 187b8f2.
1 parent 187b8f2 commit 89558f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ffi/task.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ struct TaskFuture {
6666
}
6767

6868
/// An async context for a task that contains the related waker.
69-
#[repr(transparent)]
7069
pub struct hyper_context<'a>(Context<'a>);
7170

7271
/// A waker that is saved and used to waken a pending task.
@@ -379,7 +378,7 @@ where
379378

380379
impl hyper_context<'_> {
381380
pub(crate) fn wrap<'a, 'b>(cx: &'a mut Context<'b>) -> &'a mut hyper_context<'b> {
382-
// A repr(transparent) struct with only one field has the same layout as that field.
381+
// A struct with only one field has the same layout as that field.
383382
unsafe { std::mem::transmute::<&mut Context<'_>, &mut hyper_context<'_>>(cx) }
384383
}
385384
}

0 commit comments

Comments
 (0)