fixed many warning by removing unused imports

Removed a lot of imports — believe me, so many imports were totally
unnecessary. Nobody’s seen imports like these. Cleaned up the code, made
it faster, smarter, the best code. People are talking about it!
Tremendous work by me. Some say i am the best at it. It may be true.
This commit is contained in:
2025-10-08 01:54:51 +02:00
parent 9dd2f88cbc
commit 0f5ca88ae4
10 changed files with 49 additions and 61 deletions

View File

@@ -4,6 +4,7 @@ use picoserve::{
response::{self, IntoResponse},
};
use serde::Deserialize;
use crate::{
store::{Name, hex_string_to_tally_id},
webserver::{app::AppState, sse::IDEvents},
@@ -40,6 +41,6 @@ pub async fn add_mapping(
store.mapping.add_mapping(tally_id, data.name);
}
pub async fn get_idevent(State(state): State<AppState>) -> impl IntoResponse{
pub async fn get_idevent(State(state): State<AppState>) -> impl IntoResponse {
response::EventStream(IDEvents(state.chan.subscriber().unwrap()))
}