mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
chore(clippy): fix all clippy warnings
This commit is contained in:
9
src/routes/schedule/get.rs
Normal file
9
src/routes/schedule/get.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use crate::routes::schedule::schema::ScheduleView;
|
||||
use crate::state::AppState;
|
||||
use actix_web::{get, web};
|
||||
|
||||
#[utoipa::path(responses((status = OK, body = ScheduleView)))]
|
||||
#[get("/")]
|
||||
pub async fn schedule(app_state: web::Data<AppState>) -> ScheduleView {
|
||||
ScheduleView::from(&app_state).await
|
||||
}
|
||||
Reference in New Issue
Block a user