Closed AlisCode closed 3 years ago
Both the ProcessSpawner traits and Exporter traits should define an associated type Err and return :
ProcessSpawner
Exporter
Err
Result<(), Self::Err>
Result<Option<ProcessModule>, Self::Err>
This will avoid panicking in the implementations of those traits, and let the called decide what to do with a potential failure.
Fixed by #11
Both the
ProcessSpawner
traits andExporter
traits should define an associated typeErr
and return :Result<(), Self::Err>
forExporter
Result<Option<ProcessModule>, Self::Err>
forProcessSpawner
This will avoid panicking in the implementations of those traits, and let the called decide what to do with a potential failure.