From ef2bb9af39e44dad8ce0fc029029d6f83626f403 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Tue, 26 Mar 2024 23:18:40 -0400 Subject: [PATCH] Fix clippy --- src/analyzer/expr/call/function_call_return_type_fetcher.rs | 5 ++--- src/code_info/data_flow/graph.rs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/analyzer/expr/call/function_call_return_type_fetcher.rs b/src/analyzer/expr/call/function_call_return_type_fetcher.rs index e3b462bb..7b624177 100644 --- a/src/analyzer/expr/call/function_call_return_type_fetcher.rs +++ b/src/analyzer/expr/call/function_call_return_type_fetcher.rs @@ -602,7 +602,7 @@ fn handle_special_functions( fn handle_str_format( simple_string: &BString, first_arg: &(ast_defs::ParamKind, aast::Expr<(), ()>), - args: &Vec<(ast_defs::ParamKind, aast::Expr<(), ()>)>, + args: &[(ast_defs::ParamKind, aast::Expr<(), ()>)], statements_analyzer: &StatementsAnalyzer<'_>, analysis_data: &mut FunctionAnalysisData, pos: &Pos, @@ -665,8 +665,7 @@ fn handle_str_format( } } - let result_type = analyze_concat_nodes(concat_args, statements_analyzer, analysis_data, pos); - result_type + analyze_concat_nodes(concat_args, statements_analyzer, analysis_data, pos) } fn get_type_structure_type( diff --git a/src/code_info/data_flow/graph.rs b/src/code_info/data_flow/graph.rs index 58d67b0a..d644198a 100644 --- a/src/code_info/data_flow/graph.rs +++ b/src/code_info/data_flow/graph.rs @@ -1,6 +1,6 @@ use super::{ node::{DataFlowNode, DataFlowNodeKind}, - path::{ArrayDataKind, DataFlowPath, PathKind}, + path::{DataFlowPath, PathKind}, }; use crate::taint::SinkType; use hakana_str::StrId;