Skip to content

Conversation

Daniel-Aaron-Bloom
Copy link
Contributor

Fix all the lints, including those due to incorrect usage of black_box.

`black_box` needs to hide arguments, not return values.

This also fixes some clippy warnings.

Signed-off-by: Daniel Bloom <daniel.aaron.bloom@gmail.com>
Added backticks to identifiers in comments.

Replaced `.map(|x| *x)` with `.copied()`.

Removed lazy evaluation for error constants

Removed final `clone` call from unit tests.

Removed unneeded calls to `format`

Changed from `Arc<Vec<u8>>` to `Arc<[u8]>`

Signed-off-by: Daniel Bloom <daniel.aaron.bloom@gmail.com>
@jiangliu
Copy link
Member

jiangliu commented Jan 4, 2021

/test

@alexandruag alexandruag merged commit be14339 into rust-vmm:master Jan 5, 2021
@Daniel-Aaron-Bloom Daniel-Aaron-Bloom deleted the clippy_fixes branch January 6, 2021 04:41
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