remove failure dependency

This commit is contained in:
Benjamin Fry
2020-01-11 19:28:02 -08:00
parent b4f41cf5e9
commit c10c3a589e
30 changed files with 502 additions and 669 deletions

View File

@@ -613,7 +613,6 @@ pub mod testing {
<<R as RuntimeProvider>::Tcp as Connect>::Transport: Unpin,
{
use crate::error::*;
use failure::Fail;
use proto::rr::RecordType;
let resolver = AsyncResolver::<GenericConnection, GenericConnectionProvider<R>>::new(
ResolverConfig::default(),
@@ -635,7 +634,7 @@ pub mod testing {
use proto::error::{ProtoError, ProtoErrorKind};
let error_str = format!("{}", error.root_cause());
let error_str = format!("{}", error);
let expected_str = format!(
"{}",
ProtoError::from(ProtoErrorKind::RrsigsNotPresent {
@@ -644,7 +643,10 @@ pub mod testing {
})
);
assert_eq!(error_str, expected_str);
assert_eq!(*error.kind(), ResolveErrorKind::Proto);
if let ResolveErrorKind::Proto(_) = *error.kind() {
} else {
panic!("wrong error")
}
}
/// Test AsyncResolver created from system configuration with IP lookup.