From b9ab4407d09d0ae0b8b4ad0a19d08f1e18b2e5e3 Mon Sep 17 00:00:00 2001 From: jiaxiao zhou Date: Fri, 4 Aug 2023 22:14:53 +0000 Subject: [PATCH] make default_executor non pub Signed-off-by: jiaxiao zhou --- crates/containerd-shim-wasmtime/src/executors/container.rs | 2 +- crates/containerd-shim-wasmtime/src/instance.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/containerd-shim-wasmtime/src/executors/container.rs b/crates/containerd-shim-wasmtime/src/executors/container.rs index f0cab8378..2a78d1beb 100644 --- a/crates/containerd-shim-wasmtime/src/executors/container.rs +++ b/crates/containerd-shim-wasmtime/src/executors/container.rs @@ -8,7 +8,7 @@ use std::{fs::OpenOptions, path::PathBuf}; #[derive(Default)] pub struct LinuxContainerExecutor { - pub default_executor: DefaultExecutor, + default_executor: DefaultExecutor, } impl Executor for LinuxContainerExecutor { diff --git a/crates/containerd-shim-wasmtime/src/instance.rs b/crates/containerd-shim-wasmtime/src/instance.rs index b2acf28e6..d0d98de71 100644 --- a/crates/containerd-shim-wasmtime/src/instance.rs +++ b/crates/containerd-shim-wasmtime/src/instance.rs @@ -227,9 +227,7 @@ impl Wasi { stdout, stderr, }); - let default_executor = Box::new(LinuxContainerExecutor { - ..Default::default() - }); + let default_executor = Box::new(LinuxContainerExecutor::default()); let container = ContainerBuilder::new(self.id.clone(), syscall.as_ref()) .with_executor(vec![default_executor, wasmtime_executor])? .with_root_path(self.rootdir.clone())?