Skip to content

Commit

Permalink
More tiny cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Apr 27, 2020
1 parent 3b6fc44 commit 1fe6f2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ use std::{
collections::HashMap,
io::{BufReader, Cursor, Error as IOError, Read},
mem,
ops::RangeInclusive,
path::{Path, PathBuf},
rc::Rc,
sync::atomic::{AtomicBool, AtomicU64, Ordering},
Expand Down Expand Up @@ -1708,7 +1709,7 @@ impl Bank {

fn pubkey_range_by_partition(
(start_index, end_index, partition_count): Partition,
) -> std::ops::RangeInclusive<Pubkey> {
) -> RangeInclusive<Pubkey> {
type Prefix = u64;
const PREFIX_SIZE: usize = mem::size_of::<Prefix>();
let partition_width = Prefix::max_value() / partition_count;
Expand Down

0 comments on commit 1fe6f2d

Please sign in to comment.