committed by
GitHub
parent
1da1667920
commit
58ef02f02b
@ -10,6 +10,7 @@ homepage = "https://solana.com/"
|
||||
|
||||
[dependencies]
|
||||
bs58 = "0.3.1"
|
||||
bytecount = "0.6.0"
|
||||
clap = "2.33.1"
|
||||
histogram = "*"
|
||||
serde_json = "1.0.53"
|
||||
|
@ -13,7 +13,7 @@ fn run_ledger_tool(args: &[&str]) -> Output {
|
||||
}
|
||||
|
||||
fn count_newlines(chars: &[u8]) -> usize {
|
||||
chars.iter().filter(|&c| *c == '\n' as u8).count()
|
||||
bytecount::count(chars, b'\n')
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user