Skip to content

Commit b9ab440

Browse files
committed
make default_executor non pub
Signed-off-by: jiaxiao zhou <[email protected]>
1 parent 4bd6862 commit b9ab440

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/containerd-shim-wasmtime/src/executors/container.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{fs::OpenOptions, path::PathBuf};
88

99
#[derive(Default)]
1010
pub struct LinuxContainerExecutor {
11-
pub default_executor: DefaultExecutor,
11+
default_executor: DefaultExecutor,
1212
}
1313

1414
impl Executor for LinuxContainerExecutor {

crates/containerd-shim-wasmtime/src/instance.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,7 @@ impl Wasi {
227227
stdout,
228228
stderr,
229229
});
230-
let default_executor = Box::new(LinuxContainerExecutor {
231-
..Default::default()
232-
});
230+
let default_executor = Box::new(LinuxContainerExecutor::default());
233231
let container = ContainerBuilder::new(self.id.clone(), syscall.as_ref())
234232
.with_executor(vec![default_executor, wasmtime_executor])?
235233
.with_root_path(self.rootdir.clone())?

0 commit comments

Comments
 (0)