diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-10-08 19:36:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-08 19:36:05 +0000 |
commit | 8341e4ff15ca3b3e9d77cc7546bbb36e43337e77 (patch) | |
tree | 567db2ef31477eb0b6fa91e764e6bb780e672276 /src/unistd.rs | |
parent | e5913c68a75474844b79663571086796ef932ba9 (diff) | |
parent | 6e7bddd1540565a9da7f7e56ddf5851d1786a3dd (diff) | |
download | nix-8341e4ff15ca3b3e9d77cc7546bbb36e43337e77.zip |
Merge #1839
1839: Fix clippy warnings on nightly r=asomers a=rtzoeller
Clippy is now smarter about detecting unnecessary casts and useless conversions, which means we need to be more explicit about when the conversions are needed for a subset of platforms.
Required changes found by repeatedly running the following command against a list of the supported platforms.
`xargs -t -I {} sh -c "cargo clippy -Zbuild-std --target {} --all-targets -- -D warnings || exit 255"`
I removed the casts it complained about, and then restored them with an `#[allow]` if a later target needed the cast.
Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
Diffstat (limited to 'src/unistd.rs')
0 files changed, 0 insertions, 0 deletions