From fca5e8ef7a9f289ae32c73f56e63a6b885b4b753 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Fri, 17 Jan 2025 23:58:02 +0100 Subject: [PATCH] Some typos --- src/config.rs | 4 ++-- src/date/mod.rs | 2 +- src/lib.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config.rs b/src/config.rs index 8b690a0..c57610a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2,12 +2,12 @@ //! //! This module provides a centralized configuration system for IdleFox, allowing you to load and manage your settings in an efficient and flexible manner. //! -//! The primary goal of this module is to provide a robust and reliable way to store and retrieve configuration data from the `.idlefox.toml` file. +//! The primary goal of this module is to provide a robust and reliable way to store and retrieve configuration data from the `config.json` file. //! If the file does not exist or cannot be loaded, it will automatically create a default version for you. //! //! ### Key Features //! -//! * **Config Loading**: Seamlessly load your existing config from the `.idlefox.toml` file, ensuring that all settings are preserved and up-to-date. +//! * **Config Loading**: Seamlessly load your existing config from the `config.json` file, ensuring that all settings are preserved and up-to-date. //! * **Default Config Creation**: Automatically generate a default configuration if the specified file cannot be loaded or is missing. //! * **Legacy Data Import**: Safely import old data from outdated configurations to minimize disruptions during upgrades. //! * **Faulty Data Recovery**: Implement measures to recover from importing faulty data, ensuring that your IdleFox instance remains stable and functional. diff --git a/src/date/mod.rs b/src/date/mod.rs index 6ab5199..e3d7aa0 100644 --- a/src/date/mod.rs +++ b/src/date/mod.rs @@ -17,7 +17,7 @@ //! left after processing the input, they can be retrieved using the `unparsed` method on the returned `Result`. //! The function uses the context provided to resolve any relative dates within the input string. //! -//! - [`parse_single_date`]: This function parses a given input string representing a single date and returns a `NaiveDate`. +//! - [parse_single_date]: This function parses a given input string representing a single date and returns a `NaiveDate`. //! If there are any unparsed parts left after processing the input, they can be retrieved using the `unparsed` method on the returned `Result`. //! The function uses the context provided to resolve any relative dates within the input string. //! diff --git a/src/lib.rs b/src/lib.rs index 286284e..03ea738 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,19 +10,19 @@ #![warn(clippy::missing_docs_in_private_items)] pub mod config; // Maybe in lib -pub mod date; // Definitely in lib +pub mod date; // Definitely in lib mod error_handling; // Likely in lib -pub mod ids; // Definitely in lib +pub mod ids; // Definitely in lib pub mod io; // Maybe in lib mod modules; // Maybe in lib mod persistence; // Likely in lib mod server; // Maybe in lib -pub mod votes; // Likely in lib +pub mod votes; // Likely in lib mod watchdog; // Definitely in lib // // Re export // pub use votes::add_future_event; // pub use votes::launch_future_event; -// + pub use error_handling::IdleError; pub use watchdog::main_scheduler_loop; -- 2.45.1