@@ -936,7 +936,7 @@ impl RefactoringDetector {
936936 confidence : 0.8 ,
937937 description : format ! (
938938 "Changed signature of '{}'" ,
939- change. source. as_ref( ) . map( |s| & s. name) . unwrap_or( "unknown" )
939+ change. source. as_ref( ) . map( |s| s. name. as_str ( ) ) . unwrap_or( "unknown" )
940940 ) ,
941941 affected_elements : vec ! [
942942 change. source. as_ref( ) . map( |s| s. name. clone( ) ) . unwrap_or_default( )
@@ -1078,7 +1078,7 @@ impl RefactoringDetector {
10781078 source_sig : Option < & EnhancedFunctionSignature > ,
10791079 target_sig : Option < & EnhancedFunctionSignature > ,
10801080 ) -> Result < f64 > {
1081- let mut confidence = 0.0 ;
1081+ let mut confidence: f64 = 0.0 ;
10821082
10831083 // Base pattern confidence
10841084 confidence += 0.3 ;
@@ -1208,7 +1208,7 @@ impl RefactoringDetector {
12081208 deleted_sig : Option < & EnhancedFunctionSignature > ,
12091209 modified_sig : Option < & EnhancedFunctionSignature > ,
12101210 ) -> f64 {
1211- let mut confidence = 0.0 ;
1211+ let mut confidence: f64 = 0.0 ;
12121212
12131213 // Base pattern confidence
12141214 confidence += 0.3 ;
@@ -1427,7 +1427,7 @@ impl RefactoringDetector {
14271427 source_sig : Option < & EnhancedFunctionSignature > ,
14281428 target_sig : Option < & EnhancedFunctionSignature > ,
14291429 ) -> f64 {
1430- let mut confidence = 0.0 ;
1430+ let mut confidence: f64 = 0.0 ;
14311431
14321432 // Base confidence from change type
14331433 confidence += match change. change_type {
0 commit comments