Change log passing
This commit is contained in:
parent
9200e83a0a
commit
d7180e327a
5 changed files with 171 additions and 117 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use crate::loggers::StoringLogger;
|
||||
use crate::resources::Resource;
|
||||
use crate::to_artifact::ToArtifact;
|
||||
use std::error::Error;
|
||||
|
|
@ -7,3 +8,5 @@ pub trait AddableResource: 'static + Resource + Debug {}
|
|||
impl<R> AddableResource for R where R: 'static + Resource + Debug {}
|
||||
|
||||
pub type AddResult<R> = Result<(<R as ToArtifact>::Artifact, bool), Box<dyn Error>>;
|
||||
pub type InternalAddResult<R> =
|
||||
Result<(StoringLogger, <R as ToArtifact>::Artifact, bool), (StoringLogger, Box<dyn Error>)>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue