mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2026-10-30 15:11:13 +03:00
chore(clippy): fix all clippy warnings
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
use crate::AppState;
|
||||
use crate::routes::schedule::schema::CacheStatus;
|
||||
use crate::AppState;
|
||||
use actix_web::{get, web};
|
||||
use std::ops::Deref;
|
||||
|
||||
#[utoipa::path(responses(
|
||||
(status = OK, body = CacheStatus),
|
||||
))]
|
||||
#[get("/cache-status")]
|
||||
pub async fn cache_status(app_state: web::Data<AppState>) -> CacheStatus {
|
||||
CacheStatus::from(&app_state).await.into()
|
||||
app_state
|
||||
.get_schedule_snapshot("eng_polytechnic")
|
||||
.await
|
||||
.unwrap()
|
||||
.deref()
|
||||
.into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user