this repo has no description
0
fork

Configure Feed

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

chore: fmt

+10 -15
+1 -1
Cargo.toml
··· 9 9 arithmetic_side_effects = "warn" 10 10 missing_docs = "forbid" 11 11 missing_panics_doc = "warn" 12 - pedantic = { level = "warn", priority = -1 } 12 + pedantic = { level = "warn", priority = -1 }
+1 -1
mise/tasks/check.toml
··· 21 21 22 22 [clippy_watch] 23 23 tools.watchexec = "latest" 24 - run = "watchexec -c clear -restart -e rs,toml 'clear ; cargo clippy'" 24 + run = "watchexec -c clear -restart -e rs,toml 'clear ; cargo clippy'"
+1 -1
server/src/client_communication.rs
··· 541 541 Web, 542 542 // NativeApp will one day mean a native application, like a mobile app. 543 543 // For now, it is nothing. 544 - #[expect(dead_code, reason="Will be used when other clients are added.")] 544 + #[expect(dead_code, reason = "Will be used when other clients are added.")] 545 545 NativeApp, 546 546 }
+1 -2
server/src/database.rs
··· 127 127 .map_err(LuminaError::Postgres)?; 128 128 tokio::spawn(conn_two.1); 129 129 { 130 - conn 131 - .0 130 + conn.0 132 131 .batch_execute(include_str!("../../SQL/create_pg.sql")) 133 132 .await 134 133 .map_err(LuminaError::Postgres)?;
+1 -1
server/src/errors.rs
··· 26 26 R2D2Pool(r2d2::Error), 27 27 Postgres(crate::postgres::Error), 28 28 Unknown, 29 - /// Rocket failure wrapper, due to size, we only store the error source here. Construct with: 29 + /// Rocket failure wrapper, due to size, we only store the error source here. Construct with: 30 30 /// ```rust 31 31 /// (LuminaError::RocketFaillure, Some<rocket::Error>) 32 32 /// ```
+1 -1
server/src/helpers/events.rs
··· 207 207 &[&level_str, &message_db, &ts], 208 208 ) 209 209 .await; 210 - } 210 + } 211 211 EventLogger::OnlyStdout => { 212 212 // Log to stdout with the prefix. 213 213 if use_eprintln {
+2 -1
server/src/timeline.rs
··· 318 318 ); 319 319 // For now, only global timeline is supported. 320 320 if timeline_name == "global" { 321 - let timeline_uuid = Uuid::parse_str(GLOBAL_TIMELINE_ID).map_err(|_| LuminaError::UUidError)?; 321 + let timeline_uuid = 322 + Uuid::parse_str(GLOBAL_TIMELINE_ID).map_err(|_| LuminaError::UUidError)?; 322 323 let (post_ids, total_count, has_more) = 323 324 fetch_timeline_post_ids(event_logger, db, GLOBAL_TIMELINE_ID, page).await?; 324 325 Ok((timeline_uuid, post_ids, total_count, has_more))
+2 -7
server/src/user.rs
··· 19 19 * along with this program. If not, see <https://www.gnu.org/licenses/>. 20 20 */ 21 21 22 - use crate::{ 23 - LuminaError, 24 - database::DbConn, 25 - helpers::{events::EventLogger}, 26 - info_elog, 27 - }; 22 + use crate::{LuminaError, database::DbConn, helpers::events::EventLogger, info_elog}; 28 23 use cynthia_con::CynthiaColors; 29 24 use uuid::Uuid; 30 25 ··· 283 278 let email_regex = regex::Regex::new( 284 279 r"^([a-z0-9_+]([a-z0-9_+.]*[a-z0-9_+])?)@([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{1,6})", 285 280 ) 286 - .map_err(|_| {LuminaError::RegexError})?; 281 + .map_err(|_| LuminaError::RegexError)?; 287 282 if !email_regex.is_match(&email) { 288 283 return Err(LuminaError::RegisterEmailNotValid); 289 284 };