From f39fb33e5fccac0f47b3c3b74e23dbcb93fc7f23 Mon Sep 17 00:00:00 2001 From: Cristi Bourceanu Date: Tue, 20 Jan 2026 15:52:59 +0000 Subject: [PATCH] impl std::err::Error for lidrs Error to have it compatible Bump lidrs version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/err/mod.rs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5a3591e..b156848 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "lidrs" -version = "0.2.2" +version = "0.2.3" dependencies = [ "approx", "num_enum", diff --git a/Cargo.toml b/Cargo.toml index 4b76400..da8e349 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "lidrs" authors = ["Sam Morrell "] -version = "0.2.2" +version = "0.2.3" edition = "2021" license-file = "LICENSE" description = " A rust crate for reading and representing light intensity distributions via photometric webs. " diff --git a/src/err/mod.rs b/src/err/mod.rs index 2952014..ab332a4 100644 --- a/src/err/mod.rs +++ b/src/err/mod.rs @@ -11,6 +11,8 @@ pub enum Error { OperationError(Box) } +impl std::error::Error for Error {} + impl From for Error { fn from(err: std::io::Error) -> Self { Error::IOError(err)