Skip to content

Conversation

@tottoto
Copy link
Contributor

@tottoto tottoto commented Nov 24, 2025

Applies small refactoring.

fn find<K>(&self, key: &K) -> Option<(usize, usize)>
where
K: Hash + Into<HeaderName> + ?Sized,
K: Hash + Into<HeaderName>,
Copy link
Member

Choose a reason for hiding this comment

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

This isn't needed? It's been a long time since I've looked at this, wasn't it necessary to allow K = str?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that K is required to be Sized since Into requires Sized.

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