Browse Source

Add a helpful comment

master
Adrian Heine 2 years ago
parent
commit
06ff70c38d
  1. 4
      src/setup/core.rs

4
src/setup/core.rs

@ -67,6 +67,10 @@ where
<B as ImplementationBuilder<T>>::Implementation: Runnable + Debug, <B as ImplementationBuilder<T>>::Implementation: Runnable + Debug,
Self: AddGeneric<B::Prerequisites>, Self: AddGeneric<B::Prerequisites>,
T::Artifact: Clone, T::Artifact: Clone,
// These bounds cannot be replaced by
// `RegularSetupCore<SR, L, B>: SetupCore<T, Self>`
// because the prerequisites are Option<T>, too, and thus this would
// require AddGeneric<Option<T>> to already be implemented
{ {
async fn add_generic(&self, logger: &Rc<Logger>, r: Option<T>) -> InternalAddResult<Option<T>> { async fn add_generic(&self, logger: &Rc<Logger>, r: Option<T>) -> InternalAddResult<Option<T>> {
Ok(match r { Ok(match r {

Loading…
Cancel
Save