-
Notifications
You must be signed in to change notification settings - Fork 119
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.