Skip to content

Commit 87f8ac7

Browse files
authored
Merge pull request #23 from Tim-Zhang/add-trait-bound-for-hierarchy
Add trait bound for hierarchy
2 parents 50d3c39 + 225388f commit 87f8ac7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/kata-containers/cgroups-rs"
55
keywords = ["linux", "cgroup", "containers", "isolation"]
66
categories = ["os", "api-bindings", "os::unix-apis"]
77
license = "MIT OR Apache-2.0"
8-
version = "0.2.0"
8+
version = "0.2.1"
99
authors = ["The Kata Containers community <[email protected]>", "Levente Kurusa <[email protected]>", "Sam Wilson <[email protected]>"]
1010
edition = "2018"
1111

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ pub trait ControllIdentifier {
386386

387387
/// Control group hierarchy (right now, only V1 is supported, but in the future Unified will be
388388
/// implemented as well).
389-
pub trait Hierarchy: std::fmt::Debug + Send {
389+
pub trait Hierarchy: std::fmt::Debug + Send + Sync {
390390
/// Returns what subsystems are supported by the hierarchy.
391391
fn subsystems(&self) -> Vec<Subsystem>;
392392

0 commit comments

Comments
 (0)