From d7b8138606cb049c87b243f7b625ae438e7eabb2 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Wed, 13 Aug 2025 00:21:59 -0300 Subject: [PATCH] Run cargo fmt --- src/main.rs | 6 +++--- src/utils.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index d99dfa8..fcc5518 100644 --- a/src/main.rs +++ b/src/main.rs @@ -140,7 +140,7 @@ mod state; mod utils; /// Payphone's main entrypoint function. -/// +/// /// Parses ENV variables and CLI arguments, sets up the logger, and runs [`start`] or [`docs`] /// depending on the command. #[tokio::main] @@ -167,7 +167,7 @@ pub async fn main() { } /// Starts a Payphone shard. -/// +/// /// TODO: Support multiple shards. async fn start(token: String, database_addr: String) { log::info!("Welcome to Payphone, Nyeki!"); @@ -203,7 +203,7 @@ async fn start(token: String, database_addr: String) { } /// Boots up a documentation server. -/// +/// /// It compiles the crate's documentation and recompiles it automatically when the source code /// changes. async fn docs(bind: SocketAddr, open_on_start: bool) { diff --git a/src/utils.rs b/src/utils.rs index 1238cd8..523f813 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,12 +1,12 @@ //! A set of generic utilities used across the codebase. -//! +//! //! It currently includes [`ToTitleCase`], [`get_random_u64`], and [`Bye`]. use rand::{Rng, SeedableRng}; use rand_chacha::ChaCha20Rng; /// Converts a string to title case. -/// +/// /// It removes all duplicate whitespaces and capitalizes the first letter of every word. pub trait ToTitleCase { fn to_title_case(&self) -> String;