Skip to content

Commit

Permalink
rust: fix empty struct bindgen issue
Browse files Browse the repository at this point in the history
evmc_host_context cannot be instantiated because original statement will generate private field in struct.

bindings.rs
```rust
pub struct evmc_host_context {
    _unused: [u8; 0],
}
```
  • Loading branch information
CaptainVincent committed Jun 22, 2020
1 parent 2f75e06 commit f8466c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ struct evmc_tx_context
* The opaque data type representing the Host execution context.
* @see evmc_execute_fn().
*/
struct evmc_host_context;
struct evmc_host_context {};

/**
* Get transaction context callback function.
Expand Down

0 comments on commit f8466c7

Please sign in to comment.