From 06a5baf9e4f6f3cb0ca7e673c1de738f20c46cb0 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 14 Oct 2024 19:05:43 -0300 Subject: [PATCH] Fix imports --- benches/elf_loader.rs | 3 +-- src/elf.rs | 1 - src/verifier.rs | 3 +-- tests/execution.rs | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/benches/elf_loader.rs b/benches/elf_loader.rs index 0266b7f7..2a05da9b 100644 --- a/benches/elf_loader.rs +++ b/benches/elf_loader.rs @@ -10,10 +10,9 @@ extern crate solana_rbpf; extern crate test; extern crate test_utils; -use solana_rbpf::program::SyscallRegistry; use solana_rbpf::{ elf::Executable, - program::{BuiltinFunction, BuiltinProgram, FunctionRegistry}, + program::{BuiltinFunction, BuiltinProgram, FunctionRegistry, SyscallRegistry}, syscalls, vm::{Config, TestContextObject}, }; diff --git a/src/elf.rs b/src/elf.rs index 0f1966c0..c54f5564 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -1164,7 +1164,6 @@ mod test { use rand::{distributions::Uniform, Rng}; use std::{fs::File, io::Read}; use test_utils::assert_error; - type ElfExecutable = Executable; fn loader() -> Arc> { diff --git a/src/verifier.rs b/src/verifier.rs index d0d6c8f0..ac92d2f3 100644 --- a/src/verifier.rs +++ b/src/verifier.rs @@ -12,10 +12,9 @@ //! Verifies that the bytecode is valid for the given config. -use crate::program::SyscallRegistry; use crate::{ ebpf, - program::{BuiltinFunction, FunctionRegistry, SBPFVersion}, + program::{BuiltinFunction, FunctionRegistry, SBPFVersion, SyscallRegistry}, vm::{Config, ContextObject}, }; use thiserror::Error; diff --git a/tests/execution.rs b/tests/execution.rs index 539b3f15..21b30bf1 100644 --- a/tests/execution.rs +++ b/tests/execution.rs @@ -15,14 +15,13 @@ extern crate thiserror; use byteorder::{ByteOrder, LittleEndian}; #[cfg(all(not(windows), target_arch = "x86_64"))] use rand::{rngs::SmallRng, RngCore, SeedableRng}; -use solana_rbpf::program::SyscallRegistry; use solana_rbpf::{ assembler::assemble, declare_builtin_function, ebpf, elf::Executable, error::{EbpfError, ProgramResult}, memory_region::{AccessType, MemoryMapping, MemoryRegion}, - program::{BuiltinFunction, BuiltinProgram, FunctionRegistry, SBPFVersion}, + program::{BuiltinFunction, BuiltinProgram, FunctionRegistry, SBPFVersion, SyscallRegistry}, static_analysis::Analysis, syscalls, verifier::RequisiteVerifier,