Skip to content

Commit

Permalink
fmt: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hirevo committed Sep 26, 2023
1 parent 54393d6 commit 3246f2c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/github/attach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use axum::http::StatusCode;
use axum::response::Redirect;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use oauth2::{CsrfToken, Scope};
use tower_sessions::Session;

use crate::config::AppState;
use crate::error::FrontendError;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/github/callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use axum::http::StatusCode;
use axum::response::Redirect;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use diesel::prelude::*;
use oauth2::reqwest::async_http_client;
use oauth2::{AuthorizationCode, TokenResponse};
use ring::digest as hasher;
use ring::rand::{SecureRandom, SystemRandom};
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

use crate::config::frontend::auth::github::GithubAuthOrganizationConfig;
use crate::config::AppState;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/github/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use axum::http::StatusCode;
use axum::response::Redirect;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use oauth2::{CsrfToken, Scope};
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

/// Endpoint to attach to an existing Alexandrie account.
pub mod attach;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/gitlab/attach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use axum::http::StatusCode;
use axum::response::Redirect;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use oauth2::{CsrfToken, Scope};
use tower_sessions::Session;

use crate::config::AppState;
use crate::error::FrontendError;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/gitlab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use axum::http::StatusCode;
use axum::response::Redirect;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use oauth2::{CsrfToken, Scope};
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

/// Endpoint to attach to an existing Alexandrie account.
pub mod attach;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use axum::response::Redirect;
use axum::Form;
use axum_extra::either::Either;
use axum_extra::response::Html;
use tower_sessions::Session;
use diesel::prelude::*;
use json::json;
use ring::pbkdf2;
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

use crate::config::AppState;
use crate::db::schema::*;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/manage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use std::sync::Arc;
use axum::extract::State;
use axum::http::StatusCode;
use axum_extra::response::Html;
use tower_sessions::Session;
use diesel::dsl as sql;
use diesel::prelude::*;
use json::json;
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

/// Password management routes (eg. "/account/manage/password").
pub mod passwd;
Expand Down
2 changes: 1 addition & 1 deletion crates/alexandrie/src/frontend/account/manage/passwd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use std::sync::Arc;
use axum::extract::State;
use axum::response::Redirect;
use axum::Form;
use tower_sessions::Session;
use diesel::prelude::*;
use ring::digest as hasher;
use ring::pbkdf2;
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

use crate::config::AppState;
use crate::db::schema::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::sync::Arc;
use axum::extract::State;
use axum::response::Redirect;
use axum::Form;
use tower_sessions::Session;
use diesel::prelude::*;
use serde::{Deserialize, Serialize};
use tower_sessions::Session;

/// Token revocation routes (eg. "/account/manage/tokens/5/revoke").
pub mod revoke;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use std::sync::Arc;

use axum::extract::{Path, State};
use axum::response::Redirect;
use tower_sessions::Session;
use diesel::prelude::*;
use tower_sessions::Session;

use crate::config::AppState;
use crate::db::schema::*;
Expand Down

0 comments on commit 3246f2c

Please sign in to comment.