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

Allow most low-info clippy warnings #1419

Merged

Conversation

workingjubilee
Copy link
Member

Many clippy warnings are not very informative or are unlikely to be usefully fixed any time soon. Allow them so that the remainder which constitute a problem actually stand out and can be fixed.

Many clippy warnings are not very informative or are unlikely to
be usefully fixed any time soon. Allow them so that the remainder
which constitute a problem actually stand out and can be fixed.
clippy::missing_safety_doc,
clippy::too_many_arguments,
clippy::type_complexity,
clippy::unnecessary_cast
Copy link
Member Author

Choose a reason for hiding this comment

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

We just have way too many cases of "unnecessary casts", due to constant refactoring of some gnarly casts, to bother linting on this.

@@ -7,6 +7,7 @@
//LICENSE All rights reserved.
//LICENSE
//LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#![allow(clippy::assign_op_pattern)]
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the entire point of this example, Clippy...

clippy::len_without_is_empty,
clippy::missing_safety_doc,
clippy::too_many_arguments,
clippy::type_complexity,
Copy link
Member Author

Choose a reason for hiding this comment

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

This happens basically whenever you have a callback function in your arguments.

pgrx/src/datum/varlena.rs Outdated Show resolved Hide resolved
pgrx/src/array.rs Outdated Show resolved Hide resolved
@workingjubilee
Copy link
Member Author

https://www.youtube.com/watch?v=Kvnwnf9UftA

With this and the upcoming branch I'm working on, pgrx-sql-entity-graph is clippy-clean on stable.

@workingjubilee workingjubilee merged commit d2bd29a into pgcentralfoundation:develop Nov 30, 2023
8 checks passed
@workingjubilee workingjubilee deleted the let-me-face-my-fears branch November 30, 2023 21:43
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.

1 participant