Skip to content

Commit

Permalink
fix solana-instruction when std feature is not activated
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Oct 16, 2024
1 parent a8aef04 commit 0389247
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/instruction/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use core::fmt;
#[cfg(feature = "frozen-abi")]
use solana_frozen_abi_macro::{AbiEnumVisitor, AbiExample};
#[cfg(feature = "std")]
use {
core::fmt,
num_traits::ToPrimitive,
std::string::{String, ToString},
};
Expand Down Expand Up @@ -453,6 +453,7 @@ impl fmt::Display for LamportsError {
}
}

#[cfg(feature = "std")]
impl From<LamportsError> for InstructionError {
fn from(error: LamportsError) -> Self {
match error {
Expand Down

0 comments on commit 0389247

Please sign in to comment.