From f0a695cc003c2193887cee234af67cf661847150 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Wed, 6 Jan 2021 22:12:55 +0800 Subject: [PATCH] Add trait bound Sync for Hierarchy So that the struct Cgroup could across await Signed-off-by: Tim Zhang --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3d3c68d..1fcdaad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -386,7 +386,7 @@ pub trait ControllIdentifier { /// Control group hierarchy (right now, only V1 is supported, but in the future Unified will be /// implemented as well). -pub trait Hierarchy: std::fmt::Debug + Send { +pub trait Hierarchy: std::fmt::Debug + Send + Sync { /// Returns what subsystems are supported by the hierarchy. fn subsystems(&self) -> Vec;