Skip to content

Commit e65f751

Browse files
committed
return in-lieu-of break
Allowing for correct exit once SWAR is enabled
1 parent 3ca643f commit e65f751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/simd/neon.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn match_header_name_vectored(bytes: &mut Bytes) {
1111
bytes.advance(advance);
1212

1313
if advance != 16 {
14-
break;
14+
return;
1515
}
1616
}
1717
}
@@ -26,7 +26,7 @@ pub fn match_header_value_vectored(bytes: &mut Bytes) {
2626
bytes.advance(advance);
2727

2828
if advance != 16 {
29-
break;
29+
return;
3030
}
3131
}
3232
}
@@ -41,7 +41,7 @@ pub fn match_uri_vectored(bytes: &mut Bytes) {
4141
bytes.advance(advance);
4242

4343
if advance != 16 {
44-
break;
44+
return;
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)