Skip to content

Commit d69a46a

Browse files
Re-format let-else per rustfmt update
1 parent b6d9932 commit d69a46a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/array/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ fn iter_next_chunk_erased<T>(
925925
// so we need to defuse the guard instead of using `?`.
926926
let initialized = guard.initialized;
927927
mem::forget(guard);
928-
return Err(initialized)
928+
return Err(initialized);
929929
};
930930

931931
// SAFETY: The loop condition ensures we have space to push the item

core/src/str/pattern.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,9 @@ fn simd_contains(needle: &str, haystack: &str) -> Option<bool> {
17501750
1
17511751
} else {
17521752
// try a few bytes in case first and last byte of the needle are the same
1753-
let Some(second_probe_offset) = (needle.len().saturating_sub(4)..needle.len()).rfind(|&idx| needle[idx] != first_probe) else {
1753+
let Some(second_probe_offset) =
1754+
(needle.len().saturating_sub(4)..needle.len()).rfind(|&idx| needle[idx] != first_probe)
1755+
else {
17541756
// fall back to other search methods if we can't find any different bytes
17551757
// since we could otherwise hit some degenerate cases
17561758
return None;

0 commit comments

Comments
 (0)