Apply cargo fmt --all

This commit is contained in:
2025-08-12 22:45:59 -03:00
parent 39c455f617
commit 5806493ca8
6 changed files with 64 additions and 80 deletions
+10 -10
View File
@@ -1,16 +1,16 @@
//! Log handling and formatting of the console's output.
//!
//!
//! # Logging
//!
//!
//! Payphone uses the [`log`] crate for logging, and the [`colored`] crate for formatting the
//! output.
//!
//!
//! Any logs that are not coming from the `payphone` crate are ignored.
//!
//!
//! ## Logging Levels
//!
//!
//! There are 5 different logging levels:
//!
//!
//! - `trace`: The most verbose level, used for debugging purposes.
//! - `debug`: Events that are useful to be displayed during development, but not in production.
//! - `info`: Used for general information about the bot's state and milestones.
@@ -19,9 +19,9 @@
//! - `error`: Used for errors, when something goes wrong and the bot cannot continue running.
//!
//! ## Usage
//!
//!
//! Logging is quite simple as it works like any [`println!`] calls.
//!
//!
//! ```
//! log::trace!("This is a trace message.");
//! log::debug!("This is a debug message.");
@@ -29,9 +29,9 @@
//! log::warn!("This is a warning message.");
//! log::error!("This is an error message.");
//! ```
//!
//!
//! Logging supports formatting, so you can use it like any other [`println!`] call:
//!
//!
//! ```
//! let value = 42;
//! log::info!("The value is: {value}");