From 868472ff5cd08ca6ed43efbc0c5bbe7be34096a6 Mon Sep 17 00:00:00 2001 From: vandomej Date: Sat, 6 Sep 2025 11:32:59 -0700 Subject: [PATCH] Final cleanup --- file_linked/Cargo.toml | 2 +- gemla/Cargo.toml | 2 +- gemla/src/core/genetic_node.rs | 4 ++-- gemla/src/error.rs | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/file_linked/Cargo.toml b/file_linked/Cargo.toml index 2958e5e..c7704cb 100644 --- a/file_linked/Cargo.toml +++ b/file_linked/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "file_linked" -version = "0.1.41" +version = "0.1.42" authors = ["vandomej "] edition = "2018" license = "MIT" diff --git a/gemla/Cargo.toml b/gemla/Cargo.toml index d0586b4..8fcdafa 100644 --- a/gemla/Cargo.toml +++ b/gemla/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gemla" -version = "0.1.31" +version = "0.1.32" authors = ["Jacob VanDomelen "] edition = "2018" license = "MIT" diff --git a/gemla/src/core/genetic_node.rs b/gemla/src/core/genetic_node.rs index 409d4a6..795d3aa 100644 --- a/gemla/src/core/genetic_node.rs +++ b/gemla/src/core/genetic_node.rs @@ -5,7 +5,7 @@ //! - [`GeneticNodeContext`]: Context struct passed to node methods, containing generation, node ID, and simulation context. //! - [`GeneticNodeWrapper`]: Wrapper struct for managing state transitions and node lifecycle. //! -//! [`Gemla`]: crate::Gemla +//! [`Gemla`]: crate::core::Gemla use crate::error::Error; @@ -63,7 +63,7 @@ pub struct GeneticNodeContext { /// } /// ``` /// -/// [`Gemla`]: crate::Gemla +/// [`Gemla`]: crate::core::Gemla #[async_trait] pub trait GeneticNode: Send { /// Custom type that provides a shared context across different nodes and simulations. Useful if you want to manage diff --git a/gemla/src/error.rs b/gemla/src/error.rs index 00c02ce..ed8b0d4 100644 --- a/gemla/src/error.rs +++ b/gemla/src/error.rs @@ -1,6 +1,6 @@ //! Error handling utilities and error type for the Gemla crate. //! -//! This module defines a unified [`Error`] enum for representing errors that can occur throughout the crate, +//! This module defines a unified [`enum@Error`] enum for representing errors that can occur throughout the crate, //! including I/O errors, errors from the `file_linked` crate, and general errors using `anyhow`. //! //! It also provides conversion implementations and a helper function for logging errors. @@ -24,7 +24,7 @@ pub enum Error { Other(#[from] anyhow::Error), } -/// Converts a `file_linked::error::Error` into a unified [`Error`]. +/// Converts a `file_linked::error::Error` into a unified [`enum@Error`]. impl From for Error { fn from(error: file_linked::error::Error) -> Error { match error { @@ -34,7 +34,7 @@ impl From for Error { } } -/// Converts a standard I/O error into a unified [`Error`]. +/// Converts a standard I/O error into a unified [`enum@Error`]. impl From for Error { fn from(error: std::io::Error) -> Error { Error::IO(error)