Implement ::std::error::Error

This commit is contained in:
Sam Wilson
2018-10-10 14:03:28 -04:00
committed by Levente Kurusa
parent 84ae587360
commit 7826b798bd
18 changed files with 392 additions and 293 deletions
+4 -2
View File
@@ -4,7 +4,9 @@
//! [tools/perf/Documentation/perf-record.txt](https://raw.githubusercontent.com/torvalds/linux/master/tools/perf/Documentation/perf-record.txt)
use std::path::PathBuf;
use {CgroupError, ControllIdentifier, Controller, Controllers, Resources, Subsystem};
use error::*;
use {ControllIdentifier, Controller, Controllers, Resources, Subsystem};
/// A controller that allows controlling the `perf_event` subsystem of a Cgroup.
///
@@ -30,7 +32,7 @@ impl Controller for PerfEventController {
&self.base
}
fn apply(&self, _res: &Resources) -> Result<(), CgroupError> {
fn apply(&self, _res: &Resources) -> Result<()> {
Ok(())
}
}