cargo clippy --fix

This commit is contained in:
R Tyler Croy 2023-01-28 15:10:48 -08:00
parent bd33634d04
commit 59c01e0e34
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
2 changed files with 11 additions and 11 deletions

View File

@ -2,13 +2,13 @@ use dotenv::dotenv;
use log::*;
mod routes {
use log::*;
use tide::{Body, Request, StatusCode};
use tide::{Body, Request};
/**
* GET /
*/
pub async fn index(req: Request<()>) -> Result<Body, tide::Error> {
pub async fn index(_req: Request<()>) -> Result<Body, tide::Error> {
Ok("Hello World from the Janky Agent".into())
}
}

View File

@ -20,7 +20,7 @@ pub struct AppState<'a> {
impl AppState<'_> {
fn new(db: SqlitePool) -> Self {
Self {
db: db,
db,
hb: Arc::new(RwLock::new(Handlebars::new())),
}
}
@ -58,10 +58,10 @@ impl AppState<'_> {
*/
mod routes {
use crate::AppState;
use log::*;
use std::collections::HashMap;
use tide::{Body, Request, StatusCode};
use uuid::Uuid;
use tide::{Body, Request};
/**
* GET /
@ -76,10 +76,10 @@ mod routes {
}
pub mod api {
use log::*;
use tide::{Body, Request, Response, StatusCode};
use crate::AppState;
}
}