From f0424ca90f758c8978f025a488555e1f7e459394 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 31 Jul 2022 09:26:36 -0600 Subject: [PATCH] Adjust imports --- sdk/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/src/lib.rs b/sdk/src/lib.rs index 3d9bb82e43aad7..391a4725fe8cce 100644 --- a/sdk/src/lib.rs +++ b/sdk/src/lib.rs @@ -9,8 +9,8 @@ extern crate self as solana_sdk; pub use signer::signers; // These solana_program imports could be *-imported, but that causes a bunch of // confusing duplication in the docs due to a rustdoc bug. #26211 -#[allow(deprecated)] -pub use solana_program::info; +#[cfg(not(target_os = "solana"))] +pub use solana_program::program_stubs; #[cfg(target_os = "solana")] pub use solana_program::syscalls; pub use solana_program::{ @@ -20,9 +20,9 @@ pub use solana_program::{ decode_error, ed25519_program, epoch_schedule, fee_calculator, impl_sysvar_get, incinerator, instruction, keccak, lamports, loader_instruction, loader_upgradeable_instruction, message, msg, native_token, nonce, program, program_error, program_memory, program_option, program_pack, - program_stubs, rent, sanitize, sdk_ids, secp256k1_program, secp256k1_recover, serialize_utils, - short_vec, slot_hashes, slot_history, stake, stake_history, system_instruction, system_program, - sysvar, unchecked_div_by_const, vote, wasm_bindgen, + rent, sanitize, sdk_ids, secp256k1_program, secp256k1_recover, serialize_utils, short_vec, + slot_hashes, slot_history, stake, stake_history, system_instruction, system_program, sysvar, + unchecked_div_by_const, vote, wasm_bindgen, }; pub mod account;