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

cosmwasm: accounting: fix unnecessary_fallible_conversion error in rust linter #3623

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

bingyuyap
Copy link
Contributor

str.into() conversions are infallible. Using str.try_into().unwrap() would be unnecessary, triggering unnecessary-fallible-conversions error.

See below:

…cause conversion is infallible…

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
Copy link
Contributor

@kcsongor kcsongor left a comment

Choose a reason for hiding this comment

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

nice! 👍

@bingyuyap bingyuyap added bug Something isn't working and removed bug Something isn't working labels Jan 3, 2024
@bingyuyap bingyuyap marked this pull request as ready for review January 3, 2024 15:50
Copy link
Contributor

@nik-suri nik-suri left a comment

Choose a reason for hiding this comment

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

First contribution in rust & coswmasm! LGTM :)

@bingyuyap bingyuyap merged commit 738a68a into main Jan 3, 2024
22 checks passed
@bingyuyap bingyuyap deleted the bing/rust-linter-unnecessary-fallible-conversions branch January 3, 2024 16:39
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.

3 participants