Skip to content

chore: bump msrv and run clippy#1167

Merged
noot merged 7 commits intomainfrom
noot/clippy
Jun 10, 2024
Merged

chore: bump msrv and run clippy#1167
noot merged 7 commits intomainfrom
noot/clippy

Conversation

@noot
Copy link
Copy Markdown
Contributor

@noot noot commented Jun 9, 2024

Summary

latest rust is now 1.79 and also our code was using items supported in rust 1.76 and the ci is using 1.76.0, so the msrv should be bumped:

error: current MSRV (Minimum Supported Rust Version) is `1.73.0` but this item is stable since `1.76.0`
   --> crates/astria-conductor/src/celestia/convert.rs:151:10
    |
151 |           .inspect_err(|err| {
    |  __________^
152 | |             info!(
153 | |                 error = err as &StdError,
154 | |                 target = SubmittedMetadataList::full_name(),
155 | |                 "failed decoding blob bytes; dropping the blob",
156 | |             );
157 | |         })
    | |__________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incompatible_msrv

also ran clippy and fixed the various lint issues.

@noot noot requested a review from a team as a code owner June 9, 2024 20:03
@noot noot requested a review from Fraser999 June 9, 2024 20:03
@github-actions github-actions bot added conductor pertaining to the astria-conductor crate sequencer pertaining to the astria-sequencer crate sequencer-relayer pertaining to the astria-sequencer-relayer crate composer pertaining to composer labels Jun 9, 2024
Copy link
Copy Markdown
Contributor

@Fraser999 Fraser999 left a comment

Choose a reason for hiding this comment

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

LGTM. Should we bump the Rust version for clippy in CI to 1.78.0 so we don't regress?

/// The chain ID of the sequencer chain
pub sequencer_chain_id: String,

#[allow(clippy::doc_markdown)]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Replace in favor of putting ticks around it, i.e.:

Suggested change
#[allow(clippy::doc_markdown)]
/// A list of `<rollup_name>::<url>` pairs

pub(crate) struct Validator {
/// The tendermint validator account address; defined as
/// Sha256(verification_key)[..20].
/// Sha256(`verification_key`)[..20].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's going to look very strange:

Suggested change
/// Sha256(`verification_key`)[..20].
/// `Sha256(verification_key)[..20]`.

Copy link
Copy Markdown
Contributor

@SuperFluffy SuperFluffy left a comment

Choose a reason for hiding this comment

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

We should have an msrv check running on commit to ensure the toml msrv is correct.

Changes look good, except for a few markdown uses that could be made more code-y :)

@noot noot requested a review from a team as a code owner June 10, 2024 16:05
@noot noot requested a review from WafflesVonMaple June 10, 2024 16:05
@github-actions github-actions bot added the ci issues that are related to ci and github workflows label Jun 10, 2024
@noot noot enabled auto-merge June 10, 2024 16:06
@noot noot added this pull request to the merge queue Jun 10, 2024
Merged via the queue into main with commit 6902ef3 Jun 10, 2024
@noot noot deleted the noot/clippy branch June 10, 2024 17:54
steezeburger added a commit that referenced this pull request Jun 14, 2024
* main:
  specs: add native bridging protocol doc (#1177)
  Chore(charts): update sequencer faucet chart (#1140)
  chore: remove unused dependencies (#1174)
  chore: bump msrv and run clippy (#1167)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci issues that are related to ci and github workflows composer pertaining to composer conductor pertaining to the astria-conductor crate sequencer pertaining to the astria-sequencer crate sequencer-relayer pertaining to the astria-sequencer-relayer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants