Final cleanup

This commit is contained in:
vandomej 2025-09-06 11:32:59 -07:00
parent c6ae9b71cd
commit 868472ff5c
4 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "file_linked"
version = "0.1.41"
version = "0.1.42"
authors = ["vandomej <jacob.vandome15@gmail.com>"]
edition = "2018"
license = "MIT"

View file

@ -1,6 +1,6 @@
[package]
name = "gemla"
version = "0.1.31"
version = "0.1.32"
authors = ["Jacob VanDomelen <Jacob.Vandome15@gmail.com>"]
edition = "2018"
license = "MIT"

View file

@ -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<S> {
/// }
/// ```
///
/// [`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

View file

@ -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<file_linked::error::Error> for Error {
fn from(error: file_linked::error::Error) -> Error {
match error {
@ -34,7 +34,7 @@ impl From<file_linked::error::Error> 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<std::io::Error> for Error {
fn from(error: std::io::Error) -> Error {
Error::IO(error)