Remove semicolon from internal `err` macro

This macro is used in expression position (a match arm), and only
compiles because of #33953

Regardless of what happens with that issue, this makes the
usage of the macro less confusing at the call site.
This commit is contained in:
Aaron Hill 2020-10-27 14:48:29 -04:00
parent 675f114d95
commit 5d26145dee
No known key found for this signature in database
GPG Key ID: B4087E510E98B164
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ pub(super) fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
let old_offset = index;
macro_rules! err {
($error_len: expr) => {
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len });
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len })
};
}