diff --git a/crates/rbchat/src/chat/command_registry.rs b/crates/rbchat/src/chat/command_registry.rs index cfd5a7f..f8cd141 100644 --- a/crates/rbchat/src/chat/command_registry.rs +++ b/crates/rbchat/src/chat/command_registry.rs @@ -28,6 +28,12 @@ pub struct CommandRegistry { commands: HashMap, } +impl Default for CommandRegistry { + fn default() -> Self { + Self::new() + } +} + impl CommandRegistry { pub fn new() -> Self { CommandRegistry { diff --git a/crates/rbchat/src/config/config_file.rs b/crates/rbchat/src/config/config_file.rs index 34fec73..ea9b646 100644 --- a/crates/rbchat/src/config/config_file.rs +++ b/crates/rbchat/src/config/config_file.rs @@ -20,7 +20,7 @@ //! //! Here’s an example of how you can utilize this module: //! -//! ```rust +//! ```no_run //! // Get the current application configuration //! use rbchat::config::CONFIG; //! let config = CONFIG.lock().unwrap(); diff --git a/crates/rbchat/src/config/mod.rs b/crates/rbchat/src/config/mod.rs index f7552e7..533f478 100644 --- a/crates/rbchat/src/config/mod.rs +++ b/crates/rbchat/src/config/mod.rs @@ -20,7 +20,7 @@ //! //! Here’s an example of how you can utilize this module: //! -//! ```rust +//! ```no_run //! // Get the current application configuration //! use rbchat::config::CONFIG; //! let config = CONFIG.lock().unwrap(); diff --git a/crates/rbchat/src/persona/mod.rs b/crates/rbchat/src/persona/mod.rs index e6f8274..8c9dbf8 100644 --- a/crates/rbchat/src/persona/mod.rs +++ b/crates/rbchat/src/persona/mod.rs @@ -17,7 +17,7 @@ //! //! You can list all available personas and see how they can assist you in your session with Rusty Buddy: //! -//! ```rust +//! ```no_run //! use rbchat::persona::{print_all_personas, get_persona}; //! //! // Print all available personas