Skip to content

Commit

Permalink
rust: Remove unnecessary unsafe blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelang committed Mar 27, 2019
1 parent a411782 commit beb4f09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ macro_rules! evmc_create_vm {
get_capabilities: None,
set_option: None,
set_tracer: None,
name: unsafe {
name: {
let c_str = paste::expr! { std::ffi::CString::new([<$__vm _NAME>]).expect("Failed to build EVMC name string") };
c_str.into_raw() as *const i8
},
version: unsafe {
version: {
let c_str = paste::expr! { std::ffi::CString::new([<$__vm _VERSION>]).expect("Failed to build EVMC version string") };
c_str.into_raw() as *const i8
},
Expand Down

0 comments on commit beb4f09

Please sign in to comment.