Skip to content

Commit

Permalink
fix inaccessiblity of private field.
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k committed Sep 27, 2021
1 parent 3879829 commit 7440ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/container/builder_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ impl<'a> ContainerBuilderImpl<'a> {
}

fn cleanup_container(&self) -> Result<()> {
let linux = self.spec.linux.as_ref().context("no linux in spec")?;
let cgroups_path = utils::get_cgroup_path(&linux.cgroups_path, &self.container_id);
let linux = self.spec.linux().as_ref().context("no linux in spec")?;
let cgroups_path = utils::get_cgroup_path(linux.cgroups_path(), &self.container_id);
let cmanager = cgroups::common::create_cgroup_manager(&cgroups_path, self.use_systemd)?;

let mut errors = Vec::new();
Expand Down

0 comments on commit 7440ef3

Please sign in to comment.