this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: last lints

+10 -10
+2 -2
server/src/client_communication.rs
··· 288 288 let db = &appstate.1.lock().await; 289 289 let msgback = match User::authenticate(email_username.clone(), password, db, ev_log.clone().await).await { 290 290 Ok((session_reference, user)) => { 291 - incoming_elog!(ev_log,"User {} authenticated to session with id {}.\n{}", user.username.clone().color_bright_cyan(), session_reference.session_id.to_string().color_pink(), format!("(User id: {})", user.id.to_string()).style_dim()); 291 + incoming_elog!(ev_log,"User {} authenticated to session with id {}.\n{}", user.username.clone().color_bright_cyan(), session_reference.session_id.to_string().color_pink(), format!("(User id: {})", user.id).style_dim()); 292 292 client_session_data.user = Some(user.clone()); 293 293 Message::AuthSuccess { token: session_reference.token, username: user.username } 294 294 } ··· 372 372 Ok(Message::Greeting { .. }) | Ok(Message::SerialisationError { .. }) 373 373 | Ok(Message::RegisterPrecheckResponse { .. }) 374 374 | Ok(Message::AuthSuccess { .. }) 375 - | Ok(Message::AuthFailure { .. }) 375 + | Ok(Message::AuthFailure) 376 376 | Ok(Message::MediaPostDataSent { .. }) 377 377 | Ok(Message::TextPostDataSent { .. }) 378 378 | Ok(Message::ArticlePostDataSent { .. })
+8 -8
server/src/staticroutes.rs
··· 33 33 use rocket::State; 34 34 35 35 #[get("/")] 36 - pub(crate) async fn index<'k>(state: &'k State<AppState>) -> RawHtml<String> { 36 + pub(crate) async fn index(state: &State<AppState>) -> RawHtml<String> { 37 37 let ev_log = { 38 38 let appstate = state.0.clone(); 39 39 appstate.2.clone().await ··· 68 68 } 69 69 70 70 #[get("/static/lumina.min.mjs")] 71 - pub(crate) async fn lumina_js<'k>(state: &'k State<AppState>) -> RawJavaScript<String> { 71 + pub(crate) async fn lumina_js(state: &State<AppState>) -> RawJavaScript<String> { 72 72 let ev_log = { 73 73 let appstate = state.0.clone(); 74 74 appstate.2.clone().await ··· 79 79 } 80 80 81 81 #[get("/static/lumina.mjs")] 82 - pub(crate) async fn lumina_d_js<'k>(state: &'k State<AppState>) -> RawJavaScript<String> { 82 + pub(crate) async fn lumina_d_js(state: &State<AppState>) -> RawJavaScript<String> { 83 83 let ev_log = { 84 84 let appstate = state.0.clone(); 85 85 appstate.2.clone().await ··· 90 90 } 91 91 92 92 #[get("/static/lumina.css")] 93 - pub(crate) async fn lumina_css<'k>(state: &'k State<AppState>) -> RawCss<String> { 93 + pub(crate) async fn lumina_css(state: &State<AppState>) -> RawCss<String> { 94 94 let ev_log = { 95 95 let appstate = state.0.clone(); 96 96 appstate.2.clone().await ··· 101 101 } 102 102 103 103 #[get("/licence")] 104 - pub(crate) async fn licence<'k>(state: &'k State<AppState>) -> RawText<String> { 104 + pub(crate) async fn licence(state: &State<AppState>) -> RawText<String> { 105 105 let ev_log = { 106 106 let appstate = state.0.clone(); 107 107 appstate.2.clone().await ··· 116 116 } 117 117 118 118 #[get("/static/logo.svg")] 119 - pub(crate) async fn logo_svg<'k>(state: &'k State<AppState>) -> (ContentType, &'static str) { 119 + pub(crate) async fn logo_svg(state: &State<AppState>) -> (ContentType, &'static str) { 120 120 let ev_log = { 121 121 let appstate = state.0.clone(); 122 122 appstate.2.clone().await ··· 130 130 } 131 131 132 132 #[get("/favicon.ico")] 133 - pub(crate) async fn favicon<'k>(state: &'k State<AppState>) -> (ContentType, &'static [u8]) { 133 + pub(crate) async fn favicon(state: &State<AppState>) -> (ContentType, &'static [u8]) { 134 134 let ev_log = { 135 135 let appstate = state.0.clone(); 136 136 appstate.2.clone().await ··· 140 140 } 141 141 142 142 #[get("/static/logo.png")] 143 - pub(crate) async fn logo_png<'k>(state: &'k State<AppState>) -> (ContentType, &'static [u8]) { 143 + pub(crate) async fn logo_png(state: &State<AppState>) -> (ContentType, &'static [u8]) { 144 144 let ev_log = { 145 145 let appstate = state.0.clone(); 146 146 appstate.2.clone().await