Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronleopold committed Apr 12, 2024
1 parent 2e5b90a commit 4ff4645
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/server/src/middleware/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ async fn handle_basic_auth(
/// use axum::{Router, middleware::{from_extractor, from_extractor_with_state}};
/// use stump_core::{Ctx, config::StumpConfig};
/// use stump_server::{
/// middleware::auth::{Auth, ServerOwnerGuard},
/// config::state::AppState
/// middleware::auth::{Auth, ServerOwnerGuard},
/// config::state::AppState
/// };
///
/// #[tokio::main]
/// async fn main() {
/// let config = StumpConfig::debug();
/// let ctx = Ctx::new(config).await.arced();
/// let config = StumpConfig::debug();
/// let ctx = Ctx::new(config).await.arced();
///
/// let router: Router<AppState> = Router::new()
/// .layer(from_extractor::<ServerOwnerGuard>())
/// .layer(from_extractor_with_state::<Auth, AppState>(ctx));
/// let router: Router<AppState> = Router::new()
/// .layer(from_extractor::<ServerOwnerGuard>())
/// .layer(from_extractor_with_state::<Auth, AppState>(ctx));
/// }
/// ```
pub struct ServerOwnerGuard;
Expand Down

0 comments on commit 4ff4645

Please sign in to comment.