@@ -13,11 +13,10 @@ use smart_diff_engine::{
1313 SimilarityScorer , ChangeClassifier , CrossFileTracker
1414} ;
1515use std:: collections:: HashMap ;
16- use std:: fs;
1716use std:: path:: { Path , PathBuf } ;
1817use std:: time:: { Instant , Duration } ;
1918use tokio:: fs as async_fs;
20- use tracing:: { info, warn, error , debug} ;
19+ use tracing:: { info, warn, debug} ;
2120
2221pub async fn run ( cli : Cli ) -> Result < ( ) > {
2322 if let Commands :: Compare {
@@ -403,10 +402,10 @@ async fn process_file_pair(
403402 . with_context ( || format ! ( "Failed to analyze target file: {}" , target_file. display( ) ) ) ?;
404403
405404 // Initialize diff engine components
406- let mut diff_engine = DiffEngine :: new ( ) ;
405+ let diff_engine = DiffEngine :: new ( ) ;
407406
408407 // Configure similarity scorer
409- let mut similarity_scorer = SimilarityScorer :: new ( detected_language, smart_diff_engine:: SimilarityScoringConfig :: default ( ) ) ;
408+ let similarity_scorer = SimilarityScorer :: new ( detected_language, smart_diff_engine:: SimilarityScoringConfig :: default ( ) ) ;
410409 if ignore_whitespace {
411410 // Configure to ignore whitespace - would need to add this to SimilarityScorer
412411 debug ! ( "Ignoring whitespace in similarity calculation" ) ;
@@ -546,7 +545,7 @@ fn calculate_function_similarities(
546545 target_symbols : & SymbolTable ,
547546 similarity_scorer : & SimilarityScorer ,
548547) -> Result < HashMap < String , f64 > > {
549- let mut similarities: HashMap < String , f64 > = HashMap :: new ( ) ;
548+ let similarities: HashMap < String , f64 > = HashMap :: new ( ) ;
550549
551550 // Would need to iterate over functions from symbol table - simplified for now
552551 let similarities = HashMap :: new ( ) ;
@@ -704,7 +703,7 @@ fn format_duration(duration: Duration) -> String {
704703
705704/// Extract functions from AST for comparison
706705fn extract_functions_from_ast ( ast : & smart_diff_parser:: ASTNode ) -> Vec < smart_diff_parser:: Function > {
707- use smart_diff_parser:: { Function , FunctionSignature , Parameter , Type , NodeType } ;
706+ use smart_diff_parser:: { Function , FunctionSignature , NodeType } ;
708707
709708 let mut functions = Vec :: new ( ) ;
710709
0 commit comments