Skip to content

Commit

Permalink
rust: use the where syntax consistenly in EvmcContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Aug 9, 2019
1 parent 1c39d46 commit f9c05b5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bindings/rust/evmc-vm/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ use crate::EvmcVm;
use std::ops::Deref;

/// Container struct for EVMC instances and user-defined data.
pub struct EvmcContainer<T: EvmcVm + Sized> {
pub struct EvmcContainer<T>
where
T: EvmcVm + Sized,
{
#[allow(dead_code)]
instance: ::evmc_sys::evmc_instance,
vm: T,
}

impl<T: EvmcVm + Sized> EvmcContainer<T> {
impl<T> EvmcContainer<T>
where
T: EvmcVm + Sized,
{
/// Basic constructor.
pub fn new(_instance: ::evmc_sys::evmc_instance) -> Self {
Self {
Expand Down

0 comments on commit f9c05b5

Please sign in to comment.