This commit is contained in:
asonix
2020-04-25 20:49:29 -05:00
parent a417a3d054
commit 0b2763ab8b
13 changed files with 27 additions and 28 deletions
+3 -1
View File
@@ -13,6 +13,8 @@ pub struct RelayResolver;
#[error("Error resolving webfinger data")]
pub struct RelayError;
type FutResult<T, E> = dyn Future<Output = Result<T, E>>;
impl Resolver for RelayResolver {
type State = (Data<State>, Data<Config>);
type Error = RelayError;
@@ -21,7 +23,7 @@ impl Resolver for RelayResolver {
account: &str,
domain: &str,
(state, config): Self::State,
) -> Pin<Box<dyn Future<Output = Result<Option<Webfinger>, Self::Error>>>> {
) -> Pin<Box<FutResult<Option<Webfinger>, Self::Error>>> {
let domain = domain.to_owned();
let account = account.to_owned();