Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time: use array::from_fn instead of manually creating array #7000

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

Dav1dde
Copy link
Contributor

@Dav1dde Dav1dde commented Nov 30, 2024

Motivation

Just browsing through the code I saw this block, std::array::from_fn exists since 1.63 and MSRV according to the readme is 1.70 now.

Solution

Replace manually created array with std::array::from_fn.

@mox692 mox692 added A-tokio Area: The main tokio crate M-time Module: tokio/time A-tokio-util Area: The tokio-util crate and removed A-tokio Area: The main tokio crate labels Nov 30, 2024
@Darksonn Darksonn merged commit bce9780 into tokio-rs:master Dec 1, 2024
92 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio-util Area: The tokio-util crate M-time Module: tokio/time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants