Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from agunde406/fix-lint
Browse files Browse the repository at this point in the history
Fix clippy::single_range_in_vec_init lint
  • Loading branch information
agunde406 authored Dec 5, 2023
2 parents 4ef37ba + 82db76f commit 9baf9be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/consensus/zmq_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const MAX_RETRY_DELAY: Duration = Duration::from_secs(3);
fn generate_correlation_id() -> String {
const LENGTH: usize = 16;
let mut rng = rand::thread_rng();
[0..LENGTH]
[0; LENGTH]
.iter()
.map(|_| rng.sample(Alphanumeric))
.map(char::from)
Expand Down
2 changes: 1 addition & 1 deletion src/consensus/zmq_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use std::time::Duration;
fn generate_correlation_id() -> String {
const LENGTH: usize = 16;
let mut rng = rand::thread_rng();
[0..LENGTH]
[0; LENGTH]
.iter()
.map(|_| rng.sample(Alphanumeric))
.map(char::from)
Expand Down
2 changes: 1 addition & 1 deletion src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use self::zmq_context::ZmqTransactionContext;
fn generate_correlation_id() -> String {
const LENGTH: usize = 16;
let mut rng = rand::thread_rng();
[0..LENGTH]
[0; LENGTH]
.iter()
.map(|_| rng.sample(Alphanumeric))
.map(char::from)
Expand Down

0 comments on commit 9baf9be

Please sign in to comment.