Skip to content

Commit

Permalink
Remove reserved field
Browse files Browse the repository at this point in the history
  • Loading branch information
mzohreva committed Nov 10, 2020
1 parent 77ab85a commit 39f1de5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions async-usercalls/src/hacks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
4 changes: 1 addition & 3 deletions async-usercalls/src/provider_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 39f1de5

Please sign in to comment.