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

deny clippy::type_complexity #401

Merged
merged 5 commits into from
Mar 22, 2024
Merged

Conversation

macklin-10x
Copy link
Contributor

Removes the allow exception for clippy::type_complexity and fixes all errors. I was mostly able to replace anonymous tuples with structs, but one section relied on some existing tuple-specific logic so I created a type alias and moved on.

Stacked on another feature branch, will rebase once underlying branch merges.

@macklin-10x macklin-10x force-pushed the macklin/fix-clippy-lint-errors branch from c89e029 to 14c4eb7 Compare March 19, 2024 18:38
@macklin-10x macklin-10x force-pushed the macklin/clippy-type-complexity branch from 61a07e5 to f3b0634 Compare March 19, 2024 18:39
Base automatically changed from macklin/fix-clippy-lint-errors to main March 20, 2024 20:42
@macklin-10x macklin-10x force-pushed the macklin/clippy-type-complexity branch from f3b0634 to 522d56e Compare March 20, 2024 20:44
have_gex: bool,
gex_info: &GexInfo,
rsi: &ColInfo,
sr: &mut Vec<(Vec<String>, Vec<Vec<String>>, Vec<Vec<u8>>, usize)>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Good that we got rid of two unused fields here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And gigantic ones at that!

enclone_core/src/enclone_structs.rs Show resolved Hide resolved
Comment on lines -83 to -88
let mut bads = 0;
let mut denom = 0;
for r in results {
bads += r.2;
denom += r.3;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, duplicated computation. Good catch!

@macklin-10x macklin-10x merged commit 3a73cf0 into main Mar 22, 2024
2 checks passed
@macklin-10x macklin-10x deleted the macklin/clippy-type-complexity branch March 22, 2024 18:34
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