Skip to content

Conversation

pierwill
Copy link
Contributor

@pierwill pierwill commented Mar 9, 2022

This is part of #101.

@pierwill pierwill changed the title Use a try_from instead of a cast fix: Use a try_from instead of a cast Mar 9, 2022
}

let mut buf = vec![0u8; len as usize];
let mut buf = vec![0u8; len];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

len is already a usize here.

This is part of influxdata#101.

Remove unneeded integer cast

Co-authored-by: Marco Neumann <[email protected]>
@crepererum crepererum added the automerge Instruct kodiak to merge the PR label Mar 11, 2022
@kodiakhq kodiakhq bot merged commit 7dc2e9e into influxdata:main Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Instruct kodiak to merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants