Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Oct 31, 2022
1 parent 56c5ae8 commit 202e670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 2 additions & 3 deletions src/executor/host/host_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ use core::{fmt, hash::Hasher as _, iter, str};
use sha2::Digest as _;
use tiny_keccak::Hasher as _;

use super::host_function::HostFunction;
use super::runtime_version::{CoreVersion, CoreVersionError};
use super::vm::HeapPages;
use super::zstd::Error as ModuleFormatError;
use super::host_function::HostFunction;
use super::{HostVmPrototype};
use super::HostVmPrototype;

/// Running virtual machine.
#[must_use]
Expand Down Expand Up @@ -2457,7 +2457,6 @@ pub enum Error {
},
}


// Glue between the `allocator` module and the `vm` module.
//
// The allocator believes that there are `memory_total_pages` pages available and allocated, where
Expand Down
13 changes: 4 additions & 9 deletions src/executor/host/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,24 +193,20 @@

use super::{allocator, vm};


use alloc::{
borrow::ToOwned as _,
vec::Vec,
};
use alloc::{borrow::ToOwned as _, vec::Vec};
use core::{fmt, iter, str};

pub mod runtime_version;

pub use host_function::HostFunction;
pub use host_vm::*;
pub use runtime_version::{CoreVersion, CoreVersionError, CoreVersionRef};
pub use vm::HeapPages;
pub use zstd::Error as ModuleFormatError;
pub use host_function::HostFunction;
pub use host_vm::*;

mod zstd;
mod host_function;
mod host_vm;
mod zstd;

/// Configuration for [`HostVmPrototype::new`].
pub struct Config<TModule> {
Expand Down Expand Up @@ -513,4 +509,3 @@ impl fmt::Debug for HostVmPrototype {
f.debug_tuple("HostVmPrototype").finish()
}
}

0 comments on commit 202e670

Please sign in to comment.