Cleanup SDK use syntax (#8004)

This commit is contained in:
Jack May
2020-01-28 16:11:22 -08:00
committed by GitHub
parent 4197cce8c9
commit 12eff5a2f9
17 changed files with 59 additions and 66 deletions

View File

@@ -1,9 +1,11 @@
//! A library for generating a message from a sequence of instructions
use crate::hash::Hash;
use crate::instruction::{AccountMeta, CompiledInstruction, Instruction};
use crate::pubkey::Pubkey;
use crate::short_vec;
use crate::{
hash::Hash,
instruction::{AccountMeta, CompiledInstruction, Instruction},
pubkey::Pubkey,
short_vec,
};
use itertools::Itertools;
fn position(keys: &[Pubkey], key: &Pubkey) -> u8 {
@@ -245,8 +247,10 @@ impl Message {
#[cfg(test)]
mod tests {
use super::*;
use crate::instruction::AccountMeta;
use crate::signature::{Keypair, KeypairUtil};
use crate::{
instruction::AccountMeta,
signature::{Keypair, KeypairUtil},
};
#[test]
fn test_message_unique_program_ids() {