Skip to content

Commit

Permalink
Fix rustc 1.75.0 clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
cndolo committed Jan 1, 2024
1 parent 383e88e commit ad28a2e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion simulator/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use crate::{
use serde::Serialize;

pub mod output;
pub use output::*;

#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
Expand Down
1 change: 0 additions & 1 deletion simulator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub mod traversal;
pub use core_types::*;
pub use payments::*;
pub use sim::*;
pub use stats::diversity::*;
pub use traversal::pathfinding::*;

pub type ID = String;
Expand Down
2 changes: 1 addition & 1 deletion simulator/src/stats/adversaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Simulation {
let adversaries = Arc::new(Mutex::new(vec![]));
self.adversary_selection.par_iter().for_each(|strategy| {
let mut statistics: Vec<Statistics> = vec![];
for (_idx, num_adv) in number_of_adversaries.iter().enumerate() {
for num_adv in number_of_adversaries.iter() {
let adv = match selected_adversaries.get(strategy) {
None => vec![],
Some(selected_adversaries) => selected_adversaries[0..*num_adv].to_vec(),
Expand Down
2 changes: 0 additions & 2 deletions simulator/src/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ mod failures;
use crate::io::PaymentInfo;
use serde::Serialize;

pub use diversity::*;

#[derive(Debug, Serialize, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Adversaries {
Expand Down

0 comments on commit ad28a2e

Please sign in to comment.