@@ -947,7 +947,6 @@ impl FileDetector {
947947 Ok ( "unknown" . to_string ( ) )
948948 }
949949
950-
951950 fn detect_non_test_entries ( content : & str ) -> RazResult < Vec < EntryPoint > > {
952951 let mut entry_points = Vec :: new ( ) ;
953952 let lines: Vec < & str > = content. lines ( ) . collect ( ) ;
@@ -1057,9 +1056,7 @@ impl FileDetector {
10571056 if let Some ( for_pos) = trimmed. find ( " for " ) {
10581057 // Extract the type after "for"
10591058 let after_for = & trimmed[ for_pos + 5 ..] ;
1060- let name_end = after_for
1061- . find ( [ ' ' , '{' , '<' ] )
1062- . unwrap_or ( after_for. len ( ) ) ;
1059+ let name_end = after_for. find ( [ ' ' , '{' , '<' ] ) . unwrap_or ( after_for. len ( ) ) ;
10631060 let type_name = after_for[ ..name_end] . trim ( ) ;
10641061 if !type_name. is_empty ( ) {
10651062 return Some ( type_name. to_string ( ) ) ;
@@ -1077,9 +1074,7 @@ impl FileDetector {
10771074 & trimmed[ 4 ..] . trim ( ) // Skip "impl"
10781075 } ;
10791076
1080- let name_end = after_impl
1081- . find ( [ ' ' , '{' , '<' ] )
1082- . unwrap_or ( after_impl. len ( ) ) ;
1077+ let name_end = after_impl. find ( [ ' ' , '{' , '<' ] ) . unwrap_or ( after_impl. len ( ) ) ;
10831078 let type_name = after_impl[ ..name_end] . trim ( ) ;
10841079 if !type_name. is_empty ( ) {
10851080 return Some ( type_name. to_string ( ) ) ;
0 commit comments