Skip to content

Shorten some type signatures returning impl DoubleEndedIterator#721

Merged
DataTriny merged 1 commit into
AccessKit:mainfrom
PoignardAzur:shorter_iterators
Jun 9, 2026
Merged

Shorten some type signatures returning impl DoubleEndedIterator#721
DataTriny merged 1 commit into
AccessKit:mainfrom
PoignardAzur:shorter_iterators

Conversation

@PoignardAzur

Copy link
Copy Markdown
Contributor
  • Remove FusedIterator bound, which was redundant. (User code never needs to bind on FusedIterator, that trait is only used by the standard library for specialization.)
  • Remove redundant + 'a bounds.
  • Remove redundant <Item = ...> parameter from ExactSizeIterator bounds (there's no need to specify parameters twice).

- Remove `FusedIterator` bound, which was redundant. (User code never
  needs to bind on `FusedIterator`, that trait is only used by the
  standard library for specialization.)
- Remove redundant `+ 'a` bounds.
- Remove redundant `Item = ...` from `ExactSizeIterator` bounds (there's
  no need to specify them twice).

@DataTriny DataTriny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DataTriny DataTriny merged commit 4023b41 into AccessKit:main Jun 9, 2026
41 of 42 checks passed
@DataTriny DataTriny mentioned this pull request Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants