Skip to content

Commit

Permalink
refactor: Use core::error
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Dec 5, 2024
1 parent b8b4468 commit 5842715
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//! - `'data` is the lifetime of data that is owned by the Janet GC.
use core::{
cmp::Ordering,
error,
ffi::{CStr, c_char},
fmt::{self, Display, Write},
num::ParseIntError,
Expand All @@ -18,9 +19,6 @@ use alloc::{
vec::Vec,
};

#[cfg(feature = "std")]
use std::error;

use evil_janet::{
JANET_INTMAX_DOUBLE, JANET_INTMIN_DOUBLE, Janet as CJanet, JanetType as CJanetType,
};
Expand Down Expand Up @@ -124,8 +122,6 @@ impl From<ParseIntError> for JanetConversionError {
}
}

#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl error::Error for JanetConversionError {}

impl Display for JanetConversionError {
Expand Down

0 comments on commit 5842715

Please sign in to comment.