Skip to content

Commit

Permalink
Remove semicolon from internal err macro
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Aaron1011 committed Nov 19, 2020
1 parent 675f114 commit 5d26145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/str/validations.rs
Expand Up @@ -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 })
};
}

Expand Down

0 comments on commit 5d26145

Please sign in to comment.