Skip to content

Commit

Permalink
chore: applying clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Jones <[email protected]>
  • Loading branch information
AlexsJones committed Nov 21, 2023
1 parent 22201b7 commit 7babfbd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/analyze/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub async fn run_analysis(
}
}
}));
count = count + 1;
count += 1;
}
None => println!("analyzer of type not found"),
}
Expand All @@ -98,7 +98,7 @@ pub async fn run_analysis(

pb.set_prefix(format!("[{}/{}]", count + 1, alen));
pb.set_message(format!("Starting {} analyzer", current_analyzer.get_name()));
count = count + 1;
count += 1;
let thread_tx = tx.clone();
tasks.push(tokio::spawn(async move {
let response = current_analyzer.run().await;
Expand Down
4 changes: 2 additions & 2 deletions src/analyzer/ebs_analyzer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::analyzer::analyzer_trait;
use crate::analyzer::analyzer_trait::Analyzer;
use crate::analyzer::types::AnalysisResults;
use crate::utils;

use async_trait::async_trait;
use aws_sdk_ec2;

use aws_types::sdk_config::SdkConfig;

pub struct EbsAnalyzer {
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/ec2_snapshot_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::analyzer::analyzer_trait;
use crate::analyzer::analyzer_trait::Analyzer;
use crate::analyzer::types::AnalysisResults;
use async_trait::async_trait;
use aws_sdk_ec2;

use aws_sdk_ec2::types::{Filter, PermissionGroup, SnapshotAttributeName};
use aws_types::sdk_config::SdkConfig;

Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/eip_analzyer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::analyzer::analyzer_trait;
use crate::analyzer::analyzer_trait::Analyzer;
use crate::analyzer::types::AnalysisResults;
use async_trait::async_trait;
use aws_sdk_ec2;

use aws_types::sdk_config::SdkConfig;

pub struct EipAnalyzer {
Expand Down
4 changes: 2 additions & 2 deletions src/analyzer/rds_analyzer.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use crate::analyzer::analyzer_trait;
use crate::analyzer::analyzer_trait::Analyzer;
use crate::analyzer::types::AnalysisResults;
use crate::utils;

use async_trait::async_trait;
use aws_sdk_rds;

use aws_types::sdk_config::SdkConfig;

pub struct RDSAnalyzer {
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/s3_analyzer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::analyzer::analyzer_trait;
use crate::analyzer::analyzer_trait::Analyzer;
use crate::analyzer::types::AnalysisResults;
use crate::utils;

use async_trait::async_trait;
use aws_types::sdk_config::SdkConfig;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/sg_analyzer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::analyzer::analyzer_trait;
use crate::analyzer::types::AnalysisResults;
use async_trait::async_trait;
use aws_sdk_ec2;

use aws_types::sdk_config::SdkConfig;
use colored::Colorize;

Expand Down
2 changes: 1 addition & 1 deletion src/analyzer/sts_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::analyzer::types::AnalysisResults;
use async_trait::async_trait;
use aws_types::sdk_config::SdkConfig;

use aws_types;


use crate::utils;

Expand Down

0 comments on commit 7babfbd

Please sign in to comment.