forked from rust-ethereum/evm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove unused config from runtime (rust-ethereum#161)"
This reverts commit e7138f7.
- Loading branch information
Showing
6 changed files
with
64 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
use crate::{Handler, Runtime}; | ||
|
||
/// Interrupt resolution. | ||
pub enum Resolve<'a, H: Handler> { | ||
pub enum Resolve<'a, 'config, H: Handler> { | ||
/// Create interrupt resolution. | ||
Create(H::CreateInterrupt, ResolveCreate<'a>), | ||
Create(H::CreateInterrupt, ResolveCreate<'a, 'config>), | ||
/// Call interrupt resolution. | ||
Call(H::CallInterrupt, ResolveCall<'a>), | ||
Call(H::CallInterrupt, ResolveCall<'a, 'config>), | ||
} | ||
|
||
/// Create interrupt resolution. | ||
pub struct ResolveCreate<'a> { | ||
_runtime: &'a mut Runtime, | ||
pub struct ResolveCreate<'a, 'config> { | ||
_runtime: &'a mut Runtime<'config>, | ||
} | ||
|
||
impl<'a> ResolveCreate<'a> { | ||
pub(crate) fn new(runtime: &'a mut Runtime) -> Self { | ||
impl<'a, 'config> ResolveCreate<'a, 'config> { | ||
pub(crate) fn new(runtime: &'a mut Runtime<'config>) -> Self { | ||
Self { _runtime: runtime } | ||
} | ||
} | ||
|
||
/// Call interrupt resolution. | ||
pub struct ResolveCall<'a> { | ||
_runtime: &'a mut Runtime, | ||
pub struct ResolveCall<'a, 'config> { | ||
_runtime: &'a mut Runtime<'config>, | ||
} | ||
|
||
impl<'a> ResolveCall<'a> { | ||
pub(crate) fn new(runtime: &'a mut Runtime) -> Self { | ||
impl<'a, 'config> ResolveCall<'a, 'config> { | ||
pub(crate) fn new(runtime: &'a mut Runtime<'config>) -> Self { | ||
Self { _runtime: runtime } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.