Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/key/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ pub enum ToSec1OctetStringError {
UnequalCoordinateLength,
}

#[cfg(feature = "std")]
impl std::error::Error for ToSec1OctetStringError {}
impl core::error::Error for ToSec1OctetStringError {}

impl core::fmt::Display for ToSec1OctetStringError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
Expand All @@ -125,8 +124,7 @@ impl core::fmt::Display for ToSec1OctetStringError {
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct ParseSec1OctetStringError;

#[cfg(feature = "std")]
impl std::error::Error for ParseSec1OctetStringError {}
impl core::error::Error for ParseSec1OctetStringError {}

impl core::fmt::Display for ParseSec1OctetStringError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
Expand Down
Loading