Skip to content

Commit

Permalink
remove a warning where container_dir is unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuaf committed Jul 30, 2021
1 parent 437050f commit 767c7dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/container/builder_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub(super) struct ContainerBuilderImpl {
pub use_systemd: bool,
/// Id of the container
pub container_id: String,
/// Directory where the state of the container will be stored
pub container_dir: PathBuf,
/// OCI complient runtime spec
pub spec: Spec,
/// Root filesystem of the container
Expand Down
1 change: 0 additions & 1 deletion src/container/init_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ impl InitContainerBuilder {
pid_file: self.base.pid_file,
console_socket: csocketfd,
use_systemd: self.use_systemd,
container_dir,
spec,
rootfs,
rootless,
Expand Down
1 change: 0 additions & 1 deletion src/container/tenant_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ impl TenantContainerBuilder {
pid_file: self.base.pid_file,
console_socket: csocketfd,
use_systemd,
container_dir,
spec,
rootfs,
rootless,
Expand Down

0 comments on commit 767c7dd

Please sign in to comment.