Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelang committed Mar 13, 2019
1 parent bfffde7 commit 0da841f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl EvmcResult {

/// Construct from a box containing the raw result struct.
pub fn from_boxed(inner: Box<ffi::evmc_result>) -> Self {
EvmcResult(inner)
EvmcResult(inner)
}

/// Consume the struct and return a pointer to the raw result struct.
Expand All @@ -75,7 +75,6 @@ impl EvmcResult {
}
}

#[no_mangle]
/// Callback to pass across FFI, de-allocating the struct.
extern "C" fn release_result(result: *const ffi::evmc_result) {
unsafe {
Expand All @@ -101,7 +100,7 @@ mod tests {
assert!(result.output().unwrap().len() == 4);
assert!(result.output().unwrap() == [0xde, 0xad, 0xbe, 0xef]);
}

#[test]
fn inner() {
let result = EvmcResult::new(
Expand Down

0 comments on commit 0da841f

Please sign in to comment.