From 8a06e8a8aae8c77de1d93833edaeed4d9cb5fb1d Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Fri, 20 Nov 2026 23:09:51 -0700 Subject: make stuff async; open /dev/sysmon Force-Push: yes Change-Id: I65f91e5e7809226d44bc34c99a563a424321b5e5 --- src/facility.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/facility.rs') diff --git a/src/facility.rs b/src/facility.rs index 824a864..c156570 100644 --- a/src/facility.rs +++ b/src/facility.rs @@ -48,7 +48,7 @@ pub trait CreatableFacility: Facility + Sized { * As far as why the compiler can't reach that conclusion on its own and * skip it, we have no specific information. */ - fn new() -> Result; + async fn new() -> Result; /* The only way to coerce to dyn is to return as it! */ fn as_box<'a>(self) -> Box @@ -68,9 +68,9 @@ bitflags! { } impl FacilityType { - pub fn new<'a>(&self) -> Result> { + pub async fn new(&self) -> Result> { match self { - &FacilityType::ENVSYS => Ok(EnvSys::new()?.as_box()), + &FacilityType::ENVSYS => Ok(EnvSys::new().await?.as_box()), _ => todo!() } } -- cgit 1.4.1