Skip to content

chore: update to rust edition 2024, rust-version 1.93, and add workspace lint rules#162

Open
zerosnacks wants to merge 3 commits intomainfrom
zerosnacks/bump-rust-version
Open

chore: update to rust edition 2024, rust-version 1.93, and add workspace lint rules#162
zerosnacks wants to merge 3 commits intomainfrom
zerosnacks/bump-rust-version

Conversation

@zerosnacks
Copy link
Copy Markdown
Member

Summary

Update workspace to Rust edition 2024 / MSRV 1.93 and add workspace lint rules matching foundry-rs/foundry.

Changes

  • edition: 2021 → 2024
  • rust-version: 1.76 → 1.93
  • resolver: 2 → 3
  • clippy.toml MSRV: 1.76 → 1.93, add ignore-interior-mutability
  • CI workflow + README MSRV references updated
  • Add [workspace.lints.clippy], [workspace.lints.rust], [workspace.lints.rustdoc] matching foundry-rs/foundry
  • Add [lints] workspace = true to both crates

Edition 2024 fixes

  • Removed explicit ref in match pattern (block_number.rs)
  • Wrapped env::set_var in unsafe blocks (account.rs tests) — now unsafe in edition 2024
  • Reformatted imports per edition 2024 rustfmt style

Lint fixes

  • use-self: replaced type names with Self in impl blocks
  • uninlined-format-args: inlined format arguments
  • redundant-clone: removed unnecessary .clone()
  • redundant-imports: removed Future import (now in edition 2024 prelude)

Ref: #160

…ace lint rules (#160)

## Summary

Update workspace to Rust edition 2024 / MSRV 1.93 and add workspace lint
rules matching `foundry-rs/foundry`.

## Changes

- `edition`: 2021 → 2024
- `rust-version`: 1.76 → 1.93
- `resolver`: 2 → 3
- `clippy.toml` MSRV: 1.76 → 1.93, add `ignore-interior-mutability`
- CI workflow + README MSRV references updated
- Add `[workspace.lints.clippy]`, `[workspace.lints.rust]`,
`[workspace.lints.rustdoc]` matching `foundry-rs/foundry`
- Add `[lints] workspace = true` to both crates

## Edition 2024 fixes

- Removed explicit `ref` in match pattern (`block_number.rs`)
- Wrapped `env::set_var` in `unsafe` blocks (`account.rs` tests) — now
unsafe in edition 2024
- Reformatted imports per edition 2024 rustfmt style

## Lint fixes

- `use-self`: replaced type names with `Self` in impl blocks
- `uninlined-format-args`: inlined format arguments
- `redundant-clone`: removed unnecessary `.clone()`
- `redundant-imports`: removed `Future` import (now in edition 2024
prelude)

Prompted by: zerosnacks

---------

Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com>
@zerosnacks zerosnacks marked this pull request as ready for review April 1, 2026 11:31
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.

2 participants