From bfad038f050491faa3b036b96c87e8e136c33af9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 27 Feb 2021 17:39:29 +0000 Subject: [PATCH] Make op::Core a supertrait of op::Complex, not op::Simple Signed-off-by: Ian Jackson --- daemon/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/api.rs b/daemon/api.rs index 3d865f4e..84d8f325 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -47,7 +47,7 @@ mod op { } } - pub trait Simple: Core + Debug { + pub trait Simple: Debug { #[throws(ApiPieceOpError)] fn op(&self, a: ApiPieceOpArgs) -> PieceUpdate; } @@ -57,7 +57,7 @@ mod op { fn op_complex(&self, a: ApiPieceOpArgs) -> UpdateFromOpComplex; } - impl Complex for T where T: Simple { + impl Complex for T where T: Core + Simple { #[throws(ApiPieceOpError)] fn op_complex(&self, a: ApiPieceOpArgs) -> UpdateFromOpComplex { (self.op(a)?, vec![]) -- 2.30.2