Skip to content

Commit 8ab9196

Browse files
committed
Auto merge of rust-lang#78449 - Aaron1011:fix/libstd-semi, r=dtolnay
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.
2 parents a7678e8 + 0a1a2a3 commit 8ab9196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/str/validations.rs

Lines changed: 1 addition & 1 deletion
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)