Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
}
}
- pub trait Simple: Core + Debug {
+ pub trait Simple: Debug {
#[throws(ApiPieceOpError)]
fn op(&self, a: ApiPieceOpArgs) -> PieceUpdate;
}
fn op_complex(&self, a: ApiPieceOpArgs) -> UpdateFromOpComplex;
}
- impl<T> Complex for T where T: Simple {
+ impl<T> Complex for T where T: Core + Simple {
#[throws(ApiPieceOpError)]
fn op_complex(&self, a: ApiPieceOpArgs) -> UpdateFromOpComplex {
(self.op(a)?, vec![])