Fix all compile warnings in frontend and backend

Removed unused imports, fields, methods, and structs that were generating warnings during compilation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Connor Johnstone
2025-08-28 16:33:07 -04:00
parent 42091492d5
commit b7b351416d
4 changed files with 4 additions and 74 deletions

View File

@@ -1,5 +1,5 @@
use bcrypt::{hash, verify, DEFAULT_COST};
use chrono::{DateTime, Duration, Utc};
use chrono::{Duration, Utc};
use jsonwebtoken::{decode, encode, Algorithm, DecodingKey, EncodingKey, Header, Validation};
use serde::{Deserialize, Serialize};
use sqlx::{Row, SqlitePool};

View File

@@ -1,17 +1,12 @@
use axum::{
extract::{Query, State},
http::{HeaderMap, StatusCode},
extract::State,
http::HeaderMap,
response::Json,
};
use serde::Deserialize;
use std::sync::Arc;
use crate::{AppState, models::{LoginRequest, RegisterRequest, AuthResponse, ApiError}};
#[derive(Deserialize)]
pub struct VerifyQuery {
pub token: String,
}
pub async fn register(
State(state): State<Arc<AppState>>,

View File

@@ -1,14 +1,10 @@
use axum::{
extract::State,
http::StatusCode,
response::Json,
routing::{get, post},
Router,
};
use serde::{Deserialize, Serialize};
use sqlx::{sqlite::SqlitePool, Row};
use sqlx::sqlite::SqlitePool;
use tower_http::cors::{CorsLayer, Any};
use uuid::Uuid;
use std::sync::Arc;
mod auth;
@@ -16,7 +12,6 @@ mod models;
mod handlers;
use auth::AuthService;
use models::{LoginRequest, RegisterRequest, AuthResponse, ApiError};
#[derive(Clone)]
pub struct AppState {