1
0
Fork 0

cargo fix

This commit is contained in:
Adrian Hedqvist 2025-03-23 12:34:32 +01:00
parent d642c1d718
commit 48b0bbbfb7
Signed by: tollyx
SSH key fingerprint: SHA256:NqZilNUilqR38F1LQMrz2E65ZsA621eT3lO+FqHS48Y
2 changed files with 6 additions and 13 deletions

View file

@ -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();
}
}

View file

@ -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};