@@ -29,7 +29,7 @@ pub async fn run(cli: Cli) -> Result<()> {
2929 ignore_case,
3030 threshold,
3131 output,
32- language,
32+ ref language,
3333 detect_refactoring,
3434 track_moves,
3535 show_similarity,
@@ -460,6 +460,8 @@ async fn process_file_pair(
460460 description : "Change detected" . to_string ( ) ,
461461 alternatives : Vec :: new ( ) ,
462462 complexity_score : 0.5 ,
463+ characteristics : Vec :: new ( ) ,
464+ evidence : Vec :: new ( ) ,
463465 } ,
464466 secondary_types : Vec :: new ( ) ,
465467 similarity_metrics : None ,
@@ -544,7 +546,7 @@ fn calculate_function_similarities(
544546 target_symbols : & SymbolTable ,
545547 similarity_scorer : & SimilarityScorer ,
546548) -> Result < HashMap < String , f64 > > {
547- let mut similarities = HashMap :: new ( ) ;
549+ let mut similarities: HashMap < String , f64 > = HashMap :: new ( ) ;
548550
549551 // Would need to iterate over functions from symbol table - simplified for now
550552 let similarities = HashMap :: new ( ) ;
@@ -717,7 +719,7 @@ fn extract_functions_from_ast(ast: &smart_diff_parser::ASTNode) -> Vec<smart_dif
717719 let signature = FunctionSignature {
718720 name : name. clone ( ) ,
719721 parameters : Vec :: new ( ) , // Simplified for now
720- return_type : smart_diff_parser:: Type :: new ( "void" . to_string ( ) ) ,
722+ return_type : Some ( smart_diff_parser:: Type :: new ( "void" . to_string ( ) ) ) ,
721723 modifiers : Vec :: new ( ) ,
722724 generic_parameters : Vec :: new ( ) ,
723725 } ;
0 commit comments