diff options
author | Marcin Puc <5671049+tranzystorek-io@users.noreply.github.com> | 2021-12-07 11:24:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 10:24:42 +0000 |
commit | 56e85f87d6c365816cca71c496aa7e49709e0b11 (patch) | |
tree | 1dbc6db878e8da9544df9445d77d1cd665b9126b /zellij-server/src/wasm_vm.rs | |
parent | d34e6240101d246f02921cbc909dcd04f648203e (diff) |
fix(style): various internal refactorings
Diffstat (limited to 'zellij-server/src/wasm_vm.rs')
-rw-r--r-- | zellij-server/src/wasm_vm.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zellij-server/src/wasm_vm.rs b/zellij-server/src/wasm_vm.rs index e7e1c68a8..0dd963ba2 100644 --- a/zellij-server/src/wasm_vm.rs +++ b/zellij-server/src/wasm_vm.rs @@ -83,7 +83,7 @@ pub(crate) fn wasm_thread_main( let mut plugin_map = HashMap::new(); let plugin_dir = data_dir.join("plugins/"); let plugin_global_data_dir = plugin_dir.join("data"); - fs::create_dir_all(plugin_global_data_dir.as_path()).unwrap(); + fs::create_dir_all(&plugin_global_data_dir).unwrap(); for plugin in plugins.iter() { if let PluginType::Headless = plugin.run { @@ -160,7 +160,7 @@ pub(crate) fn wasm_thread_main( } } info!("wasm main thread exits"); - fs::remove_dir_all(plugin_global_data_dir.as_path()).unwrap(); + fs::remove_dir_all(&plugin_global_data_dir).unwrap(); } fn start_plugin( @@ -210,7 +210,7 @@ fn start_plugin( .env("CLICOLOR_FORCE", "1") .map_dir("/host", ".") .unwrap() - .map_dir("/data", plugin_own_data_dir.as_path()) + .map_dir("/data", &plugin_own_data_dir) .unwrap() .stdin(Box::new(input)) .stdout(Box::new(output)) |