Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
avdb13 committed Dec 17, 2024
1 parent 61329d0 commit 1a5ab0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/models/src/entity/atproto.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::future::Future;

use actix_web::{
cookie::Cookie,
http::header::{self, HeaderValue},
Expand Down Expand Up @@ -65,17 +67,17 @@ impl DnsTxtResolverTrait for DnsTxtResolver {
}

pub trait AtprotoCallback {
async fn login_start<'a>(
fn login_start<'a>(
data: &'a web::Data<AppState>,
payload: atproto::LoginRequest,
) -> Result<(Cookie<'a>, String, HeaderValue), ErrorResponse>;
) -> impl Future<Output = Result<(Cookie<'a>, String, HeaderValue), ErrorResponse>>;

async fn login_finish<'a>(
fn login_finish<'a>(
data: &'a web::Data<AppState>,
req: &'a HttpRequest,
payload: &'a atproto::CallbackRequest,
session: Session,
) -> Result<(AuthStep, Cookie<'a>), ErrorResponse>;
) -> impl Future<Output = Result<(AuthStep, Cookie<'a>), ErrorResponse>>;
}

impl AtprotoCallback for AuthProviderCallback {
Expand Down

0 comments on commit 1a5ab0b

Please sign in to comment.