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

ci: ignore more broken clippy lints #1591

Merged
merged 3 commits into from
Dec 20, 2022
Merged

ci: ignore more broken clippy lints #1591

merged 3 commits into from
Dec 20, 2022

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Dec 20, 2022

Description of changes:

Clippy released a couple of broken lints that were rolled back in beta (and eventually the next release). This PR makes an exception for them so it doesn't break our CI.

Call-outs:

The exceptions should probably be removed after the next stable release but it isn't a huge deal if it's not.

Testing:

The CI checks are all passing now.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review December 20, 2022 00:56
@@ -1,6 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

#![allow(clippy::unnecessary_cast)] // some platforms encode lengths as `u32` so we cast everything to be safe
Copy link
Contributor

@toidiu toidiu Dec 20, 2022

Choose a reason for hiding this comment

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

🥇 dang sharp edges. Wondering if some tests failed or you foresaw this on your own?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we ran into issues with it in the past. i believe it was macos so our current tests should catch it

@@ -10,5 +10,5 @@
set -e

cargo +nightly fmt --all -- --check
cargo +stable clippy --all-features --all-targets -- -D warnings -A clippy::derive_partial_eq_without_eq
cargo +stable clippy --all-features --all-targets -- -D warnings -A clippy::derive_partial_eq_without_eq -A clippy::manual_clamp -A clippy::uninlined_format_args
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe also create an issue to track removing it in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@camshaft camshaft merged commit 93e9419 into main Dec 20, 2022
@camshaft camshaft deleted the camshaft/clippy-12-19-22 branch December 20, 2022 04:42
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