Skip to content

Commit 7ea1ea5

Browse files
committed
mv imports, rm eprintln
1 parent 73e3c4c commit 7ea1ea5

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

sdk/pinocchio/src/sysvars/slot_hashes/test_raw.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ fn test_fetch_into_offset_validation() {
7575
/// On a host build the underlying sysvar syscall is stubbed out.
7676
#[test]
7777
fn test_fetch_into_host_stub() {
78-
use super::raw;
79-
8078
// 1. Full-size buffer, offset 0.
8179
let mut full = std::vec![0u8; MAX_SIZE];
8280
let n = raw::fetch_into(&mut full, 0).expect("fetch_into(full, 0)");

sdk/pinocchio/src/sysvars/slot_hashes/test_std.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ use std::vec::Vec;
1313

1414
#[test]
1515
fn test_from_account_info_constructor() {
16-
use std::eprintln;
17-
eprintln!("DEBUG: Test starting");
1816
std::io::stderr().flush().unwrap();
1917

2018
const NUM_ENTRIES: usize = 3;

sdk/pinocchio/src/sysvars/slot_hashes/test_utils.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
55
use super::*;
66
extern crate std;
7+
use crate::account_info::{Account, AccountInfo};
8+
use crate::pubkey::Pubkey;
79
use core::{mem, ptr};
810
use std::vec::Vec;
911

@@ -85,9 +87,6 @@ pub fn create_mock_data(entries: &[(u64, [u8; HASH_BYTES])]) -> Vec<u8> {
8587
build_slot_hashes_bytes(entries.len() as u64, entries)
8688
}
8789

88-
use crate::account_info::{Account, AccountInfo};
89-
use crate::pubkey::Pubkey;
90-
9190
/// Allocate a heap-backed `AccountInfo` whose data region is initialised with
9291
/// `data` and whose key is `key`.
9392
///

0 commit comments

Comments
 (0)