From 09e78bed6c08cc556025c4573905c11c0c05b8a2 Mon Sep 17 00:00:00 2001 From: Caio Date: Wed, 10 Jul 2024 10:53:27 -0300 Subject: [PATCH] Updates --- ndstruct/src/coo/coo_error.rs | 3 +-- ndstruct/src/csl/csl_error.rs | 3 +-- ndstruct/src/csl/csl_line_constructor.rs | 3 +-- ndstruct/src/dense/dense_error.rs | 3 +-- ndstruct/src/error.rs | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ndstruct/src/coo/coo_error.rs b/ndstruct/src/coo/coo_error.rs index 6333d10..709cb50 100644 --- a/ndstruct/src/coo/coo_error.rs +++ b/ndstruct/src/coo/coo_error.rs @@ -53,5 +53,4 @@ impl Display for CooError { } } -#[cfg(feature = "std")] -impl std::error::Error for CooError {} +impl core::error::Error for CooError {} diff --git a/ndstruct/src/csl/csl_error.rs b/ndstruct/src/csl/csl_error.rs index ccdcedc..9af1e38 100644 --- a/ndstruct/src/csl/csl_error.rs +++ b/ndstruct/src/csl/csl_error.rs @@ -120,5 +120,4 @@ impl Display for CslError { } } -#[cfg(feature = "std")] -impl std::error::Error for CslError {} +impl core::error::Error for CslError {} diff --git a/ndstruct/src/csl/csl_line_constructor.rs b/ndstruct/src/csl/csl_line_constructor.rs index 4c96ce0..26630d7 100644 --- a/ndstruct/src/csl/csl_line_constructor.rs +++ b/ndstruct/src/csl/csl_line_constructor.rs @@ -170,5 +170,4 @@ impl Display for CslLineConstructorError { } } -#[cfg(feature = "std")] -impl std::error::Error for CslLineConstructorError {} +impl core::error::Error for CslLineConstructorError {} diff --git a/ndstruct/src/dense/dense_error.rs b/ndstruct/src/dense/dense_error.rs index 20fa00c..c456dda 100644 --- a/ndstruct/src/dense/dense_error.rs +++ b/ndstruct/src/dense/dense_error.rs @@ -21,5 +21,4 @@ impl Display for DenseError { } } -#[cfg(feature = "std")] -impl std::error::Error for DenseError {} +impl core::error::Error for DenseError {} diff --git a/ndstruct/src/error.rs b/ndstruct/src/error.rs index 954c7fe..1ca8fa0 100644 --- a/ndstruct/src/error.rs +++ b/ndstruct/src/error.rs @@ -32,8 +32,7 @@ impl Display for Error { } } -#[cfg(feature = "std")] -impl std::error::Error for Error {} +impl core::error::Error for Error {} impl From for Error { #[inline]