Skip to content

Commit 0d74a50

Browse files
committed
fmt
1 parent 03d28b3 commit 0d74a50

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/linux/cgroup/v1.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Implements Cgroup Driver for V1 cgroups
22
use crate::linux::{cgroup::ResourceLimits, util::Fd};
3-
use std::os::unix::io::IntoRawFd;
4-
use std::path::PathBuf;
3+
use std::{os::unix::io::IntoRawFd, path::PathBuf};
54
impl super::Driver {
65
pub(super) fn setup_cgroups_v1(&self, limits: &ResourceLimits, cgroup_id: &str) -> Vec<Fd> {
76
// configure cpuacct subsystem

src/linux/sandbox.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ impl Drop for LinuxSandbox {
228228
}
229229
// Remove cgroups.
230230
if std::env::var("MINION_DEBUG_KEEP_CGROUPS").is_err() {
231-
self
232-
.cgroup_driver
231+
self.cgroup_driver
233232
.drop_cgroup(&self.id, &["pids", "memory", "cpuacct"]);
234233
}
235234

src/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//! Minion on windows
22
33
mod child;
4+
mod constrain;
45
pub mod error;
6+
mod isolate;
57
mod pipe;
6-
mod constrain;
7-
mod spawn;
88
mod sandbox;
9-
mod isolate;
9+
mod spawn;
1010

1111
pub use error::Error;
1212
pub use pipe::{ReadPipe, WritePipe};

0 commit comments

Comments
 (0)