Skip to content

Commit fa2fea3

Browse files
authored
Merge pull request #2022 from CosmWasm/micro-fix-in-iterator
Refactored iterator usage
2 parents b0de3b8 + 0d767df commit fa2fea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/go-gen/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
///
33
/// It starts with the full string and ends with the last character.
44
/// It is a double-ended iterator and can be reversed.
5-
pub fn suffixes(s: &str) -> impl Iterator<Item = &str> + DoubleEndedIterator {
5+
pub fn suffixes(s: &str) -> impl DoubleEndedIterator<Item = &str> {
66
s.char_indices().map(|(pos, _)| &s[pos..])
77
}
88

0 commit comments

Comments
 (0)