From b422fb3cc9b80307677537c0946a2cc5594fa762 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Mon, 13 Nov 2023 19:17:09 +0900 Subject: [PATCH] fix `thiserror` visibility --- zk-token-sdk/src/instruction/errors.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zk-token-sdk/src/instruction/errors.rs b/zk-token-sdk/src/instruction/errors.rs index 89f4ca3d0a4d00..a21ac1cf345459 100644 --- a/zk-token-sdk/src/instruction/errors.rs +++ b/zk-token-sdk/src/instruction/errors.rs @@ -1,6 +1,8 @@ +#[cfg(not(target_os = "solana"))] use thiserror::Error; #[derive(Error, Clone, Debug, Eq, PartialEq)] +#[cfg(not(target_os = "solana"))] pub enum InstructionError { #[error("decryption error")] Decryption,