aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wasm_vm.rs
diff options
context:
space:
mode:
authorKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-08 05:07:41 -0700
committerKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-08 05:07:41 -0700
commit4fb4faa28dcbae09d60389ba1d8b062cccce8332 (patch)
treedfa43e33b962dfdd2328f5a65b92f0cbba620c98 /src/common/wasm_vm.rs
parentFirst round of merging against server-client and color stuff (diff)
downloadsl0ppij-4fb4faa28dcbae09d60389ba1d8b062cccce8332.tar.gz
sl0ppij-4fb4faa28dcbae09d60389ba1d8b062cccce8332.tar.xz
sl0ppij-4fb4faa28dcbae09d60389ba1d8b062cccce8332.zip
Markups from self-review
Diffstat (limited to 'src/common/wasm_vm.rs')
-rw-r--r--src/common/wasm_vm.rs31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/common/wasm_vm.rs b/src/common/wasm_vm.rs
index 8d29b6a9..e5567285 100644
--- a/src/common/wasm_vm.rs
+++ b/src/common/wasm_vm.rs
@@ -1,14 +1,13 @@
+use std::collections::{HashMap, HashSet};
+use std::fs;
+use std::path::PathBuf;
+use std::process;
+use std::str::FromStr;
+use std::sync::{mpsc::Sender, Arc, Mutex};
+use std::thread;
+use std::time::{Duration, Instant};
+
use serde::{de::DeserializeOwned, Serialize};
-use std::{
- collections::{HashMap, HashSet},
- fs,
- path::PathBuf,
- process,
- str::FromStr,
- sync::{mpsc::Sender, Arc, Mutex},
- thread,
- time::{Duration, Instant},
-};
use wasmer::{
imports, ChainableNamedResolver, Function, ImportObject, Instance, Module, Store, Value,
WasmerEnv,
@@ -16,13 +15,11 @@ use wasmer::{
use wasmer_wasi::{Pipe, WasiEnv, WasiState};
use zellij_tile::data::{Event, EventType, PluginIds};
-use super::{
- errors::{ContextType, PluginContext},
- pty::PtyInstruction,
- screen::ScreenInstruction,
- thread_bus::{Bus, ThreadSenders},
- PaneId,
-};
+use crate::common::errors::{ContextType, PluginContext};
+use crate::common::pty::PtyInstruction;
+use crate::common::screen::ScreenInstruction;
+use crate::common::thread_bus::{Bus, ThreadSenders};
+use crate::common::PaneId;
#[derive(Clone, Debug)]
pub enum PluginInstruction {