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 for 1.68 toolchain #178

Closed

Conversation

jsturtevant
Copy link
Collaborator

@jsturtevant jsturtevant commented Mar 20, 2023

The main branch isn't building due to clippy updates in rust 1.68. This fixes clippy warnings for 1.68 toolchain

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (476446f) 25.76% compared to head (b2c1d3d) 25.76%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   25.76%   25.76%           
=======================================
  Files          16       16           
  Lines        2395     2395           
=======================================
  Hits          617      617           
  Misses       1778     1778           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Fix clippy warnings for 1.68 toolchain

Signed-off-by: James Sturtevant <jstur@microsoft.com>
@@ -8,20 +8,15 @@ use crate::str_lit::StrLit;
use protobuf_support::lexer::float;

/// Protobox syntax
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Default)]
Copy link
Member

@Tim-Zhang Tim-Zhang Mar 24, 2023

Choose a reason for hiding this comment

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

This change could cause whole project not compatible with lower rust version(<1.66) anymore.
So I think I should limit the Clippy versions instead of this pr.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh interesting. Should we add a skip statement?

What is the typical support for older versions of rust?

Copy link
Member

Choose a reason for hiding this comment

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

I have file a PR to lock the rust/clippy version #179

@Tim-Zhang Tim-Zhang self-requested a review March 24, 2023 03:14
@Tim-Zhang Tim-Zhang added do-not-merge wontfix This will not be worked on labels Mar 24, 2023
@Tim-Zhang
Copy link
Member

@jsturtevant #179

@jsturtevant
Copy link
Collaborator Author

/close in favor of #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants