rust-lang / hashbrown

Rust port of Google's SwissTable hash map
https://rust-lang.github.io/hashbrown
Apache License 2.0
2.38k stars 275 forks source link

Shorten code #538

Closed overlookmotel closed 1 month ago

overlookmotel commented 1 month ago

Condense code a little.

I don't know if little PRs like this have more downside in the noise they create for maintainers than the benefit of the changes themselves. If so, please say so! That'd be a completely legitimate response. I'm exploring hashbrown's code, and just submitting small bits where I find them.

Amanieu commented 1 month ago

Thanks!

@bors r+

bors commented 1 month ago

:pushpin: Commit e71fa1db7b8e774605e9b6068d3332e792f9b45f has been approved by Amanieu

It is now in the queue for this repository.

bors commented 1 month ago

:hourglass: Testing commit e71fa1db7b8e774605e9b6068d3332e792f9b45f with merge 894b56ffa517efeb14990b2104271c594bc9b9ca...

bors commented 1 month ago

:sunny: Test successful - checks-actions Approved by: Amanieu Pushing 894b56ffa517efeb14990b2104271c594bc9b9ca to master...

bors commented 1 month ago

:sunny: Test successful - checks-actions Approved by: Amanieu Pushing 894b56ffa517efeb14990b2104271c594bc9b9ca to master...

bors commented 1 month ago

:eyes: Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.