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 and update Rust #299

Merged
merged 11 commits into from
May 17, 2024
Merged

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented May 1, 2024

Clippy warnings are now forbidden.

Changes:

  • Update Rust stable and nightly
  • Automatic clippy fix
  • Forbid clippy warnings
  • Remove redundant imports
  • Added minimal amount of allow(s to suppress clippy.
  • Does not require a CHANGELOG entry

[email protected] and others added 4 commits May 1, 2024 17:33
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@seadanda
Copy link
Contributor

seadanda commented May 2, 2024

I just noticed in the last release that they are now built with 1.77, so the versions will need a bump again to keep fmt, clippy and the tests working with the same versions as the releases.
"These runtimes were built with rustc 1.77.0 (aedd173a2 2024-03-17) using srtool v0.15.0"

@ggwpez
Copy link
Member Author

ggwpez commented May 2, 2024

to keep fmt, clippy and the tests working with the same versions

I think fmt and clippy are supposed to run with nightly, since they have a lot of features not present in stable.
Tests should run with stable - yes.

ggwpez added 2 commits May 2, 2024 14:27
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@seadanda
Copy link
Contributor

seadanda commented May 2, 2024

By bumping versions I was suggesting to bump stable to 1.77.0 and nightly to (something like) 2024-04-10 from around the same time if we're building with 1.77.

ggwpez added 4 commits May 2, 2024 18:13
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez changed the title Fix nightly Clippy Fix Clippy and update Rust May 2, 2024
@github-actions github-actions bot requested a review from bkchr May 15, 2024 12:17
Copy link

Review required! Latest push from author must always be reviewed

@@ -80,7 +80,7 @@ const RETAIN_MAX_DECIDING: u32 = 25;
const RETAIN_DECISION_DEPOSIT: Balance = 5 * DOLLARS;
const RETAIN_PREPARE_PERIOD: BlockNumber = 0;
const RETAIN_DECISION_PERIOD: BlockNumber = 14 * DAYS;
const RETAIN_CONFIRM_PERIOD: BlockNumber = 1 * HOURS;
Copy link
Contributor

Choose a reason for hiding this comment

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

tbh, this seems like a downgrade in readability - can we suppress this lint?

@bkchr
Copy link
Contributor

bkchr commented May 17, 2024

/merge

@fellowship-merge-bot fellowship-merge-bot bot merged commit f29ef4b into main May 17, 2024
41 of 42 checks passed
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

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.

7 participants