This commit is contained in:
dullbananas 2024-05-27 20:43:42 -07:00 committed by GitHub
parent 0b8790ce1d
commit ce1cf3efde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,7 +232,7 @@ fn sort_within_sections<T: Ord + ?Sized>(vec: &mut [&T], mut section: impl FnMut
vec.sort_unstable_by_key(|&i| (section(i), i));
}
fn chunks(diff: &str) -> impl Iterator<Item = &str> {
fn chunks(dump: &str) -> impl Iterator<Item = &str> {
let mut remaining = dump;
std::iter::from_fn(move || {
remaining = remaining.trim_start();