rust2018: remove extern crate

Signed-off-by: Levente Kurusa <lkurusa@acm.org>
This commit is contained in:
Levente Kurusa
2018-12-23 16:57:41 +01:00
parent 932a6e770f
commit ed1e8162d5
9 changed files with 5 additions and 15 deletions
-1
View File
@@ -1,5 +1,4 @@
//! Some simple tests covering the builder pattern for control groups.
extern crate cgroups;
use cgroups::*;
use cgroups::cpu::*;
use cgroups::devices::*;
-4
View File
@@ -1,10 +1,6 @@
//! Simple unit tests about the control groups system.
extern crate cgroups;
use cgroups::{Cgroup, CgroupPid};
extern crate libc;
extern crate nix;
#[test]
fn test_tasks_iterator() {
let hier = cgroups::hierarchies::V1::new();
-2
View File
@@ -1,5 +1,3 @@
extern crate cgroups;
use cgroups::cpuset::CpuSetController;
use cgroups::error::ErrorKind;
use cgroups::Cgroup;
-1
View File
@@ -1,6 +1,5 @@
//! Integration tests about the devices subsystem
extern crate cgroups;
use cgroups::devices::{DevicePermissions, DeviceType, DevicesController};
use cgroups::{Cgroup, DeviceResource};
-3
View File
@@ -1,14 +1,11 @@
//! Integration tests about the pids subsystem
extern crate cgroups;
use cgroups::pid::{PidController, PidMax};
use cgroups::Controller;
use cgroups::{Cgroup, CgroupPid, PidResources, Resources};
extern crate nix;
use nix::sys::wait::{waitpid, WaitStatus};
use nix::unistd::{fork, ForkResult, Pid};
extern crate libc;
use libc::pid_t;
use std::thread;
-2
View File
@@ -1,6 +1,4 @@
//! Integration test about setting resources using `apply()`
extern crate cgroups;
use cgroups::pid::{PidController, PidMax};
use cgroups::{Cgroup, PidResources, Resources};