Skip to content

Commit 9b71440

Browse files
authored
Merge pull request #1295 from benmkw/note
add attribution to itertools
2 parents ccb607d + 38a0ed9 commit 9b71440

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gitoxide-core/src/hours/util.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ impl<'a> From<&'a WorkByEmail> for WorkByPerson {
4242
}
4343
}
4444

45+
/// Combine all iterator elements into one String, separated by `sep`.
46+
///
47+
/// Use the `Display` implementation of each element.
48+
///
49+
/// extracted from
50+
/// https://github.com/rust-itertools/itertools/blob/762643f1be2217140a972745cf4d6ed69435f722/src/lib.rs#L2295-L2324
4551
fn join<I>(mut iter: I, sep: &str) -> String
4652
where
4753
I: Iterator,

0 commit comments

Comments
 (0)