Skip to content

Commit a5cb86b

Browse files
committed
Fix continuation_line_hook_incorrect false positive
1 parent 4c336d5 commit a5cb86b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lint/rules/spacing.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,8 @@ impl NspPtrDeclRule {
859859
if !self.enabled { return; }
860860
if let Some(ranges) = ranges {
861861
if let Some(op_range) = ranges.rightmost_multiply {
862-
if has_space_between(&op_range, &ranges.identifier_range) {
862+
if has_space_between(&op_range, &ranges.identifier_range)
863+
&& ranges.identifier_range != ZeroRange::invalid() {
863864
acc.push(self.create_err(ranges.identifier_range));
864865
}
865866
}

0 commit comments

Comments
 (0)