Skip to content

Commit

Permalink
remove pointless pub
Browse files Browse the repository at this point in the history
  • Loading branch information
seanyoung committed Dec 4, 2024
1 parent 1b06659 commit feb711c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions programs/bpf_loader/src/syscalls/mem_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ where
Ok(T::default())
}

pub struct MemoryChunkIterator<'a> {
struct MemoryChunkIterator<'a> {
memory_mapping: &'a MemoryMapping<'a>,
accounts: &'a [SerializedAccountMetadata],
access_type: AccessType,
Expand All @@ -454,7 +454,7 @@ pub struct MemoryChunkIterator<'a> {
}

impl<'a> MemoryChunkIterator<'a> {
pub fn new(
fn new(
memory_mapping: &'a MemoryMapping,
accounts: &'a [SerializedAccountMetadata],
access_type: AccessType,
Expand Down
5 changes: 1 addition & 4 deletions programs/bpf_loader/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ pub use self::{
logging::{
SyscallLog, SyscallLogBpfComputeUnits, SyscallLogData, SyscallLogPubkey, SyscallLogU64,
},
mem_ops::{
iter_memory_chunks, MemoryChunkIterator, SyscallMemcmp, SyscallMemcpy, SyscallMemmove,
SyscallMemset,
},
mem_ops::{iter_memory_chunks, SyscallMemcmp, SyscallMemcpy, SyscallMemmove, SyscallMemset},
sysvar::{
SyscallGetClockSysvar, SyscallGetEpochRewardsSysvar, SyscallGetEpochScheduleSysvar,
SyscallGetFeesSysvar, SyscallGetLastRestartSlotSysvar, SyscallGetRentSysvar,
Expand Down

0 comments on commit feb711c

Please sign in to comment.