Skip to content

Commit e303116

Browse files
committed
Implement Clone for ToTitlecase iterator
1 parent 8b1930b commit e303116

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl CharExt for char {
4646
}
4747
}
4848

49+
#[derive(Clone)]
4950
enum CaseMappingIter {
5051
Three(char, char, char),
5152
Two(char, char),
@@ -88,6 +89,7 @@ impl CaseMappingIter {
8889
}
8990
}
9091

92+
#[derive(Clone)]
9193
pub struct ToTitlecase(CaseMappingIter);
9294

9395
impl Iterator for ToTitlecase {

0 commit comments

Comments
 (0)