cargo clippy --fix
This commit is contained in:
parent
bd33634d04
commit
59c01e0e34
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue