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

Fix clippy warnings across pyrometer #81

Merged
merged 5 commits into from
Jun 28, 2024
Merged

Fix clippy warnings across pyrometer #81

merged 5 commits into from
Jun 28, 2024

Conversation

plotchy
Copy link
Collaborator

@plotchy plotchy commented Jun 26, 2024

No description provided.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@brockelmore Could you look at this change? was 2 unused vars but i think they need to be used here

Comment on lines 127 to 134

let nulls = self.ranges.iter().fold(0, |mut acc, e| {
if matches!(e, Elem::Null) {
acc += 1;
}
acc
});
// let nulls = self.ranges.iter().fold(0, |mut acc, e| {
// if matches!(e, Elem::Null) {
// acc += 1;
// }
// acc
// });

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

dont know the original intention here, but decided to comment it rather than leading underscore the unused nulls var

@plotchy plotchy merged commit ed8044b into master Jun 28, 2024
1 check passed
@plotchy plotchy deleted the plotchy/clippy branch June 28, 2024 19:59
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.

None yet

1 participant