Skip to content

Commit

Permalink
fix solana-instruction when std feature is not activated (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Oct 18, 2024
1 parent 2d9764a commit b24d7e1
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 b24d7e1

Please sign in to comment.