diff options
Diffstat (limited to 'src/sandbox/loopback.rs')
| -rw-r--r-- | src/sandbox/loopback.rs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/sandbox/loopback.rs b/src/sandbox/loopback.rs index 64875c6..fb97660 100644 --- a/src/sandbox/loopback.rs +++ b/src/sandbox/loopback.rs @@ -12,7 +12,7 @@ use crate::sandbox::{Cmd, Exit, Sandbox, SandboxBackend, SandboxInfo, SandboxSpe /// only way to reach it, and the alias is what carries the /// feature-conditional visibility. mod loopback_backend { - use super::*; + use super::Config; // `pub` fields inside a private module are not nameable from // outside; they stay readable by the impls below. @@ -42,18 +42,11 @@ impl SandboxBackend for LoopbackBackend { fn acquire(&self, spec: &SandboxSpec) -> Result<Arc<dyn Sandbox>> { let blobs = blob_root(&self.cfg).join(safe_name(&spec.task)); fs::create_dir_all(&blobs)?; - Ok(Arc::new(LoopbackSandbox { - id: format!("loopback:{}", spec.task), - blobs, - cfg: self.cfg.clone(), - })) + Ok(Arc::new(LoopbackSandbox { id: format!("loopback:{}", spec.task), blobs, cfg: self.cfg.clone() })) } fn status(&self) -> Result<Vec<SandboxInfo>> { - Ok(vec![SandboxInfo { - id: "loopback".into(), - profile: self.cfg.build_profile.clone(), - }]) + Ok(vec![SandboxInfo { id: "loopback".into(), profile: self.cfg.build_profile.clone() }]) } } |
