From 009eae763dabb6850f5cc5d5c188728a661141fb Mon Sep 17 00:00:00 2001 From: yihuaf Date: Wed, 2 Aug 2023 22:05:19 -0700 Subject: [PATCH] Fix doc test Signed-off-by: yihuaf --- crates/libcontainer/src/container/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libcontainer/src/container/builder.rs b/crates/libcontainer/src/container/builder.rs index ea3f2d8f7..f681bc913 100644 --- a/crates/libcontainer/src/container/builder.rs +++ b/crates/libcontainer/src/container/builder.rs @@ -244,13 +244,13 @@ impl ContainerBuilder { /// ```no_run /// # use libcontainer::container::builder::ContainerBuilder; /// # use libcontainer::syscall::syscall::SyscallType; - /// # use libcontainer::workload::default::get_executor; + /// # use libcontainer::workload::default::DefaultExecutor; /// /// ContainerBuilder::new( /// "74f1a4cb3801".to_owned(), /// SyscallType::default(), /// ) - /// .with_executor(get_executor()); + /// .with_executor(DefaultExecutor{}); /// ``` pub fn with_executor(mut self, executor: impl Executor + 'static) -> Self { self.executor = Box::new(executor);