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

fix(clippy): Unnecessary deref #9

Merged
merged 1 commit into from
Jun 2, 2023
Merged

Conversation

jalil-salame
Copy link

There is an unecessary deref in the tests, which clippy was warning me about.

Clippy also warns about the let vec = Vec::with_capacity(len); unsafe {vec.set_length(len)};, although it is 'sound', the compiler might break the code, using let vec = vec![0; len]; is safe but slower, is that a worthy tradeof?

@qarmin qarmin merged commit ec69f88 into qarmin:master Jun 2, 2023
@jalil-salame jalil-salame deleted the clippy branch June 2, 2023 20:05
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.

2 participants