renamed VmFactory -> Factory
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
use evm::Evm;
|
||||
|
||||
/// Evm factory. Creates appropriate Evm.
|
||||
pub struct VmFactory;
|
||||
pub struct Factory;
|
||||
|
||||
impl VmFactory {
|
||||
impl Factory {
|
||||
/// Returns jit vm
|
||||
#[cfg(feature = "jit")]
|
||||
pub fn create() -> Box<Evm> {
|
||||
@@ -21,5 +21,5 @@ impl VmFactory {
|
||||
|
||||
#[test]
|
||||
fn test_create_vm() {
|
||||
let _vm = VmFactory::create();
|
||||
let _vm = Factory::create();
|
||||
}
|
||||
@@ -2,16 +2,12 @@
|
||||
|
||||
pub mod ext;
|
||||
pub mod evm;
|
||||
pub mod vmfactory;
|
||||
//pub mod logentry;
|
||||
pub mod factory;
|
||||
pub mod schedule;
|
||||
#[cfg(feature = "jit" )]
|
||||
mod jit;
|
||||
|
||||
// TODO: Error -> evm::Error, Result -> evm::Result
|
||||
pub use self::evm::{Evm, Error, Result};
|
||||
pub use self::ext::Ext;
|
||||
// TODO: VmFactory -> evm::Factory
|
||||
// TODO: module rename vmfactory -> factory
|
||||
pub use self::vmfactory::VmFactory;
|
||||
pub use self::factory::Factory;
|
||||
pub use self::schedule::Schedule;
|
||||
|
||||
Reference in New Issue
Block a user