Skip to content

Fix clippy warnings for 1.68 toolchain#178

Closed
jsturtevant wants to merge 1 commit intocontainerd:masterfrom
jsturtevant:clippy-updates-1.68
Closed

Fix clippy warnings for 1.68 toolchain#178
jsturtevant wants to merge 1 commit intocontainerd:masterfrom
jsturtevant:clippy-updates-1.68

Conversation

@jsturtevant
Copy link
Copy Markdown
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
Copy Markdown

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>

/// Protobox syntax
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
#[derive(Debug, Clone, Copy, Eq, PartialEq, Default)]
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Do not merge wontfix This will not be worked on labels Mar 24, 2023
@Tim-Zhang
Copy link
Copy Markdown
Member

@jsturtevant #179

@jsturtevant
Copy link
Copy Markdown
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 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