Skip to content

Commit 5d26145

Browse files
committed
Remove semicolon from internal err macro
This macro is used in expression position (a match arm), and only compiles because of rust-lang#33953 Regardless of what happens with that issue, this makes the usage of the macro less confusing at the call site.
1 parent 675f114 commit 5d26145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/str/validations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub(super) fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
125125
let old_offset = index;
126126
macro_rules! err {
127127
($error_len: expr) => {
128-
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len });
128+
return Err(Utf8Error { valid_up_to: old_offset, error_len: $error_len })
129129
};
130130
}
131131

0 commit comments

Comments
 (0)