Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Fix clippy::single_range_in_vec_init lint #88

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

agunde406
Copy link
Contributor

This is almost always incorrect, as it will result in a Vec that has only one element. Almost always, the programmer intended for it to include all elements in the range or for the end of the range to be the length instead.

This means our correlations ids are not 16 characters long like we want. This fixes that issue.

This is almost always incorrect, as it will result in a
Vec that has only one element. Almost always, the programmer
intended for it to include all elements in the range or
for the end of the range to be the length instead.

This means our correlations ids are not 16 characters long
like we want. This fixes that issue.

Signed-off-by: Andrea Gunderson <[email protected]>
@agunde406 agunde406 merged commit 9baf9be into hyperledger-archives:main Dec 5, 2023
5 checks passed
@agunde406 agunde406 deleted the fix-lint branch December 5, 2023 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants