Fix doc tests

This commit is contained in:
Lachlan Sneff
2019-01-23 15:36:13 -08:00
parent bc2e527bb2
commit 147b214965
2 changed files with 12 additions and 4 deletions

View File

@ -179,6 +179,12 @@ impl From<Box<RuntimeError>> for Box<CallError> {
}
}
impl From<Box<ResolveError>> for Box<CallError> {
fn from(resolve_err: Box<ResolveError>) -> Self {
Box::new(CallError::Resolve(*resolve_err))
}
}
impl From<CompileError> for Box<Error> {
fn from(compile_err: CompileError) -> Self {
Box::new(Error::CompileError(compile_err))