Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Feb 21, 2019
1 parent f9d7d56 commit 2443083
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/runtime-core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ impl From<io::Error> for Error {
}

/// The hash of a wasm module.
///
///
/// Used as a key when loading and storing modules in a [`Cache`].
///
///
/// [`Cache`]: trait.Cache.html
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct WasmHash([u8; 32]);

impl WasmHash {
/// Hash a wasm module.
///
/// # Note:
///
/// # Note:
/// This does no verification that the supplied data
/// is, in fact, a wasm module.
pub fn generate(wasm: &[u8]) -> Self {
Expand Down Expand Up @@ -202,7 +202,7 @@ impl SerializedCache {
}

/// A generic cache for storing and loading compiled wasm modules.
///
///
/// The `wasmer-runtime` supplies a naive `FileSystemCache` api.
pub trait Cache {
type LoadError;
Expand Down

0 comments on commit 2443083

Please sign in to comment.