mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-19 00:00:12 +02:00
Fix TraitObject
This commit is contained in:
@@ -258,6 +258,7 @@ impl<B: ByteStr> ByteStrPriv for B {
|
|||||||
|
|
||||||
// TODO: Figure out how to not depend on the memory layout of trait objects
|
// TODO: Figure out how to not depend on the memory layout of trait objects
|
||||||
// Blocked: rust-lang/rust#24050
|
// Blocked: rust-lang/rust#24050
|
||||||
|
#[repr(C)]
|
||||||
struct TraitObject {
|
struct TraitObject {
|
||||||
data: *mut (),
|
data: *mut (),
|
||||||
vtable: *mut (),
|
vtable: *mut (),
|
||||||
|
|||||||
Reference in New Issue
Block a user