Skip to content

Commit

Permalink
fix warning in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey committed Nov 22, 2024
1 parent f17468a commit 5cd83a7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sdk/transaction-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
use serde_derive::{Deserialize, Serialize};
#[cfg(feature = "frozen-abi")]
use solana_frozen_abi_macro::{AbiEnumVisitor, AbiExample};
use {
core::fmt, solana_instruction::error::InstructionError, solana_sanitize::SanitizeError, std::io,
};
use {core::fmt, solana_instruction::error::InstructionError, solana_sanitize::SanitizeError};

pub type TransactionResult<T> = Result<T, TransactionError>;

Expand Down Expand Up @@ -356,7 +354,7 @@ impl From<SanitizeError> for SanitizeMessageError {
#[cfg(not(target_os = "solana"))]
#[derive(Debug)]
pub enum TransportError {
IoError(io::Error),
IoError(std::io::Error),
TransactionError(TransactionError),
Custom(String),
}
Expand Down Expand Up @@ -386,8 +384,8 @@ impl fmt::Display for TransportError {
}

#[cfg(not(target_os = "solana"))]
impl From<io::Error> for TransportError {
fn from(e: io::Error) -> Self {
impl From<std::io::Error> for TransportError {
fn from(e: std::io::Error) -> Self {
TransportError::IoError(e)
}
}
Expand Down

0 comments on commit 5cd83a7

Please sign in to comment.