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())?