Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Conversation

@haraldh
Copy link
Contributor

@haraldh haraldh commented Jan 26, 2021

usize::from(a) as _ can be transformed to
a.try_into().or(Err(libc::EINVAL))?

with the not yet released primordial 0.2

Because the sgx crate still uses primordial 0.1,
internal/shim-sgx/src/event.rs and internal/shim-sgx/src/handler.rs
are force transmuted as a workaround for now.

Signed-off-by: Harald Hoyer [email protected]

`usize::from(a) as _` can be transformed to
`a.try_into().or(Err(libc::EINVAL))?`

with the not yet released primordial 0.2

Because the `sgx` crate still uses primordial 0.1,
`internal/shim-sgx/src/event.rs` and `internal/shim-sgx/src/handler.rs`
are force transmuted as a workaround for now.

Signed-off-by: Harald Hoyer <[email protected]>
@connorkuehl connorkuehl removed their request for review August 25, 2021 20:51
@connorkuehl connorkuehl removed their assignment Aug 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants