From 5cd83a775a5e356136524c0e06f73f7ea4fcf91d Mon Sep 17 00:00:00 2001 From: kevinheavey Date: Fri, 22 Nov 2024 12:38:35 +0400 Subject: [PATCH] fix warning in CI --- sdk/transaction-error/src/lib.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sdk/transaction-error/src/lib.rs b/sdk/transaction-error/src/lib.rs index 26587523109fbc..433a48b0122e31 100644 --- a/sdk/transaction-error/src/lib.rs +++ b/sdk/transaction-error/src/lib.rs @@ -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 = Result; @@ -356,7 +354,7 @@ impl From for SanitizeMessageError { #[cfg(not(target_os = "solana"))] #[derive(Debug)] pub enum TransportError { - IoError(io::Error), + IoError(std::io::Error), TransactionError(TransactionError), Custom(String), } @@ -386,8 +384,8 @@ impl fmt::Display for TransportError { } #[cfg(not(target_os = "solana"))] -impl From for TransportError { - fn from(e: io::Error) -> Self { +impl From for TransportError { + fn from(e: std::io::Error) -> Self { TransportError::IoError(e) } }