Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Oct 9, 2023
1 parent 66318e1 commit 09fba79
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 37 deletions.
1 change: 0 additions & 1 deletion crates/host/src/guest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ where
I: serde::Serialize + std::fmt::Debug,
O: serde::de::DeserializeOwned + std::fmt::Debug,
{
// let instance = instance.lock();
// The guest will use the same crate for decoding if it uses the wasm common crate.
let payload: Vec<u8> =
holochain_serialized_bytes::encode(&input).map_err(|e| wasm_error!(e))?;
Expand Down
1 change: 0 additions & 1 deletion crates/host/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use wasmer::Cranelift;
use wasmer::Instance;
use wasmer::Module;
use wasmer::Store;
// use wasmer::Universal;
use bytes::Bytes;

/// We expect cache keys to be produced via hashing so 32 bytes is enough for all
Expand Down
3 changes: 0 additions & 3 deletions crates/host/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
pub use crate::env::Env;
pub use crate::guest;
pub use crate::module::MODULE_CACHE;
// pub use crate::store::STORE;
pub use holochain_serialized_bytes::prelude::*;
pub use holochain_wasmer_common::result::WasmError;
pub use holochain_wasmer_common::*;
pub use parking_lot::Mutex;
// pub use wasmer::WasmerEnv;
// pub use wasmer::*;
19 changes: 0 additions & 19 deletions crates/host/src/store.rs

This file was deleted.

12 changes: 0 additions & 12 deletions test/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ use wasmer::FunctionEnv;
use wasmer::Imports;
use wasmer::StoreMut;

/// ```
/// # use wasmer::{Store, Function, FunctionEnv, FunctionEnvMut};
/// # let mut store = Store::default();
/// # let env = FunctionEnv::new(&mut store, ());
/// #
/// fn sum(_env: FunctionEnvMut<()>, a: i32, b: i32) -> i32 {
/// a + b
/// }
///
/// let f = Function::new_typed_with_env(&mut store, &env, sum);
/// ```
pub fn imports(store: &mut StoreMut, function_env: &FunctionEnv<Env>) -> Imports {
imports! {
"env" => {
Expand Down
1 change: 0 additions & 1 deletion test/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod wasms;

use holochain_wasmer_host::prelude::*;
use test_common::SomeStruct;
// use wasmer::FunctionEnv;
use wasmer::FunctionEnvMut;

pub fn short_circuit(
Expand Down

0 comments on commit 09fba79

Please sign in to comment.