mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-06 02:01:35 +00:00
fix
This commit is contained in:
parent
0b8790ce1d
commit
ce1cf3efde
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
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;
|
let mut remaining = dump;
|
||||||
std::iter::from_fn(move || {
|
std::iter::from_fn(move || {
|
||||||
remaining = remaining.trim_start();
|
remaining = remaining.trim_start();
|
||||||
|
|
Loading…
Reference in a new issue