Skip to content

Commit

Permalink
[tidy] applying clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
br0kej committed Mar 3, 2024
1 parent 3a7b758 commit 51984ae
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 159 deletions.
13 changes: 6 additions & 7 deletions src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ use crate::errors::FileLoadError;
#[cfg(feature = "inference")]
use crate::inference::InferenceJob;
use crate::networkx::{
CallGraphFuncWithMetadata, CallGraphNodeFeatureType, CallGraphTikNibFeatures, CallGraphTypes,
NetworkxDiGraph,
CallGraphFuncWithMetadata, CallGraphTikNibFeatures, CallGraphTypes, NetworkxDiGraph,
};
use crate::utils::{check_or_create_dir, get_save_file_path};
use crate::utils::get_save_file_path;
use enum_as_inner::EnumAsInner;
use indicatif::ParallelProgressIterator;
use itertools::Itertools;
Expand Down Expand Up @@ -552,7 +551,7 @@ impl AGCJFile {
match graph_data_type {
DataType::Cg => {
fcg.to_petgraph(
&self,
self,
&self.output_path,
&self.filename,
with_features,
Expand All @@ -562,7 +561,7 @@ impl AGCJFile {
}
DataType::OneHopCg => {
fcg.one_hop_to_petgraph(
&self,
self,
&self.output_path,
&self.filename,
with_features,
Expand All @@ -572,7 +571,7 @@ impl AGCJFile {
}
DataType::CgWithCallers => {
fcg.to_petgraph_with_callers(
&self,
self,
&self.output_path,
&self.filename,
with_features,
Expand All @@ -582,7 +581,7 @@ impl AGCJFile {
}
DataType::OneHopCgWithcallers => {
fcg.one_hop_to_petgraph_with_callers(
&self,
self,
&self.output_path,
&self.filename,
with_features,
Expand Down
Loading

0 comments on commit 51984ae

Please sign in to comment.