Export `algebra-core::error`
Pratyush Mishra pratyushmishra@berkeley.edu
Fri, 28 Feb 2020 00:11:48 -0800
2 files changed,
0 insertions(+),
22 deletions(-)
M
crypto-primitives/src/lib.rs
→
crypto-primitives/src/lib.rs
@@ -38,10 +38,6 @@ merkle_tree::constraints::MerkleTreePathGadget, nizk::NIZKVerifierGadget, prf::PRFGadget,
signature::SigRandomizePkGadget, }; -#[cfg(feature = "std")] -pub type Error = Box<dyn std::error::Error>; - -#[cfg(not(feature = "std"))] pub type Error = Box<dyn algebra_core::Error>; #[derive(Debug)]@@ -60,13 +56,4 @@ write!(f, "{}", msg)
} } -#[cfg(feature = "std")] -impl std::error::Error for CryptoError { - #[inline] - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - None - } -} - -#[cfg(not(feature = "std"))] impl algebra_core::Error for CryptoError {}
M
crypto-primitives/src/merkle_tree/mod.rs
→
crypto-primitives/src/merkle_tree/mod.rs
@@ -255,15 +255,6 @@ write!(f, "{}", msg)
} } -#[cfg(feature = "std")] -impl std::error::Error for MerkleTreeError { - #[inline] - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - None - } -} - -#[cfg(not(feature = "std"))] impl algebra_core::Error for MerkleTreeError {} /// Returns the log2 value of the given number.