From 39f1de5817951b80ec3076d07f14e6c21923d1fc Mon Sep 17 00:00:00 2001 From: Mohsen Zohrevandi Date: Tue, 10 Nov 2020 11:06:18 -0800 Subject: [PATCH] Remove reserved field --- async-usercalls/src/hacks/mod.rs | 5 +---- async-usercalls/src/provider_core.rs | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/async-usercalls/src/hacks/mod.rs b/async-usercalls/src/hacks/mod.rs index 71c0639f..9011c63e 100644 --- a/async-usercalls/src/hacks/mod.rs +++ b/async-usercalls/src/hacks/mod.rs @@ -22,10 +22,7 @@ unsafe impl UserSafeSized for Return {} #[repr(C)] #[derive(Copy, Clone, Default)] -pub struct Cancel { - /// Reserved for future use. - pub reserved: u64, -} +pub struct Cancel; unsafe impl UserSafeSized for Cancel {} diff --git a/async-usercalls/src/provider_core.rs b/async-usercalls/src/provider_core.rs index 9acb318c..5b027c16 100644 --- a/async-usercalls/src/provider_core.rs +++ b/async-usercalls/src/provider_core.rs @@ -44,9 +44,7 @@ impl ProviderCore { assert!(usercall.id != 0); let cancel = Identified { id: usercall.id, - data: Cancel { - reserved: 0, - }, + data: Cancel, }; PROVIDERS .usercall_sender()