Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 11, 2024
1 parent 83dadd0 commit e4d3bfc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion crates/site-app/src/pages/auth/signup_page.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use leptos::{logging::log, *};
use leptos::*;

use crate::pages::SmallPageWrapper;

Expand Down
4 changes: 1 addition & 3 deletions crates/site-app/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use leptos::*;

pub fn authenticated_user() -> Option<auth_types::User> {
use_context::<auth_types::LoggedInUser>()
.map(|u| u.0)
.flatten()
use_context::<auth_types::LoggedInUser>().and_then(|u| u.0)
}
5 changes: 1 addition & 4 deletions crates/site-server/src/fileserv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ use axum::{
response::{IntoResponse, Response as AxumResponse},
};
use leptos::*;
use site_app::{
error_template::{AppError, ErrorTemplate},
App,
};
use site_app::App;
use tower::ServiceExt;
use tower_http::services::ServeDir;

Expand Down
3 changes: 1 addition & 2 deletions crates/site-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use axum::{
extract::{FromRef, Path, State},
http::Request,
response::{IntoResponse, Response},
routing::{get, post},
routing::get,
Router,
};
use color_eyre::eyre::Result;
Expand All @@ -26,7 +26,6 @@ pub struct AppState {
}

async fn server_fn_handler(
State(app_state): State<AppState>,
auth_session: auth::AuthSession,
path: Path<String>,
request: Request<Body>,
Expand Down

0 comments on commit e4d3bfc

Please sign in to comment.