cargo fix
This commit is contained in:
parent
d642c1d718
commit
48b0bbbfb7
2 changed files with 6 additions and 13 deletions
17
src/main.rs
17
src/main.rs
|
@ -1,10 +1,7 @@
|
|||
#![warn(clippy::pedantic)]
|
||||
use std::{collections::HashMap, fmt::Display, path::PathBuf, sync::Arc, time::Duration};
|
||||
use std::{collections::HashMap, fmt::Display, path::PathBuf, sync::Arc};
|
||||
|
||||
use axum::{
|
||||
body::Bytes,
|
||||
http::{Response, Uri},
|
||||
};
|
||||
use axum::http::Uri;
|
||||
|
||||
use page::Page;
|
||||
|
||||
|
@ -14,12 +11,8 @@ use tera::Tera;
|
|||
|
||||
use time::OffsetDateTime;
|
||||
use tokio::{net::TcpListener, signal};
|
||||
use tower_http::{
|
||||
compression::CompressionLayer,
|
||||
cors::CorsLayer,
|
||||
trace::{DefaultMakeSpan, TraceLayer},
|
||||
};
|
||||
use tracing::{Span, debug, instrument, log::info};
|
||||
use tower_http::{compression::CompressionLayer, cors::CorsLayer, trace::TraceLayer};
|
||||
use tracing::{instrument, log::info};
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
|
||||
|
@ -189,6 +182,6 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn appstate_load() {
|
||||
let state = AppState::load(Settings::test_config()).unwrap();
|
||||
_ = AppState::load(Settings::test_config()).unwrap();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ use anyhow::Result;
|
|||
use serde_derive::{Deserialize, Serialize};
|
||||
use time::{OffsetDateTime, format_description::well_known::Rfc3339};
|
||||
|
||||
use tracing::{debug, error, info, instrument};
|
||||
use tracing::{debug, info, instrument};
|
||||
|
||||
use crate::{AppState, WebsiteError, helpers, markdown};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue