File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -797,6 +797,11 @@ impl SpPtrDeclArgs {
797797
798798fn has_space_between ( range_left : & ZeroRange ,
799799 range_right : & ZeroRange ) -> bool {
800+ // Print what is being compared
801+ println ! (
802+ "Comparing ranges: left = {:?}, right = {:?}" ,
803+ range_left, range_right
804+ ) ;
800805 !( ( range_left. row_end == range_right. row_start )
801806 && ( range_left. col_end == range_right. col_start ) )
802807}
@@ -859,7 +864,8 @@ impl NspPtrDeclRule {
859864 if !self . enabled { return ; }
860865 if let Some ( ranges) = ranges {
861866 if let Some ( op_range) = ranges. rightmost_multiply {
862- if has_space_between ( & op_range, & ranges. identifier_range ) {
867+ if has_space_between ( & op_range, & ranges. identifier_range )
868+ && ranges. identifier_range != ZeroRange :: invalid ( ) {
863869 acc. push ( self . create_err ( ranges. identifier_range ) ) ;
864870 }
865871 }
You can’t perform that action at this time.
0 commit comments