···541541 Web,
542542 // NativeApp will one day mean a native application, like a mobile app.
543543 // For now, it is nothing.
544544- #[expect(dead_code, reason="Will be used when other clients are added.")]
544544+ #[expect(dead_code, reason = "Will be used when other clients are added.")]
545545 NativeApp,
546546}
···2626 R2D2Pool(r2d2::Error),
2727 Postgres(crate::postgres::Error),
2828 Unknown,
2929- /// Rocket failure wrapper, due to size, we only store the error source here. Construct with:
2929+ /// Rocket failure wrapper, due to size, we only store the error source here. Construct with:
3030 /// ```rust
3131 /// (LuminaError::RocketFaillure, Some<rocket::Error>)
3232 /// ```
+1-1
server/src/helpers/events.rs
···207207 &[&level_str, &message_db, &ts],
208208 )
209209 .await;
210210- }
210210+ }
211211 EventLogger::OnlyStdout => {
212212 // Log to stdout with the prefix.
213213 if use_eprintln {
+2-1
server/src/timeline.rs
···318318 );
319319 // For now, only global timeline is supported.
320320 if timeline_name == "global" {
321321- let timeline_uuid = Uuid::parse_str(GLOBAL_TIMELINE_ID).map_err(|_| LuminaError::UUidError)?;
321321+ let timeline_uuid =
322322+ Uuid::parse_str(GLOBAL_TIMELINE_ID).map_err(|_| LuminaError::UUidError)?;
322323 let (post_ids, total_count, has_more) =
323324 fetch_timeline_post_ids(event_logger, db, GLOBAL_TIMELINE_ID, page).await?;
324325 Ok((timeline_uuid, post_ids, total_count, has_more))
+2-7
server/src/user.rs
···1919 * along with this program. If not, see <https://www.gnu.org/licenses/>.
2020 */
21212222-use crate::{
2323- LuminaError,
2424- database::DbConn,
2525- helpers::{events::EventLogger},
2626- info_elog,
2727-};
2222+use crate::{LuminaError, database::DbConn, helpers::events::EventLogger, info_elog};
2823use cynthia_con::CynthiaColors;
2924use uuid::Uuid;
3025···283278 let email_regex = regex::Regex::new(
284279 r"^([a-z0-9_+]([a-z0-9_+.]*[a-z0-9_+])?)@([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{1,6})",
285280 )
286286- .map_err(|_| {LuminaError::RegexError})?;
281281+ .map_err(|_| LuminaError::RegexError)?;
287282 if !email_regex.is_match(&email) {
288283 return Err(LuminaError::RegisterEmailNotValid);
289284 };