Skip to content

Commit

Permalink
Bump MSRV to Rust 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrasnitski committed Jul 13, 2023
1 parent e0046c4 commit 8104a9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: CI
on: [push, pull_request]

env:
rust_min: 1.70.0
rust_nightly: nightly-2023-05-31
rust_min: 1.71.0
rust_nightly: nightly-2023-07-12

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }

## MSRV Policy

Serenity's minimum supported Rust version (MSRV) is Rust 1.70.
Serenity's minimum supported Rust version (MSRV) is Rust 1.71.

We opt to keep MSRV stable on the `current` branch. This means it will remain
unchanged between minor releases. Occasionally, dependencies may violate SemVer
Expand Down Expand Up @@ -251,5 +251,5 @@ a Rust-native cloud development platform that allows deploying Serenity bots for
[repo:andesite]: https://github.com/natanbc/andesite
[repo:lavaplayer]: https://github.com/sedmelluq/lavaplayer
[logo]: https://raw.githubusercontent.com/serenity-rs/serenity/current/logo.png
[rust-version-badge]: https://img.shields.io/badge/rust-1.70.0+-93450a.svg?style=flat-square
[rust-version-link]: https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html
[rust-version-badge]: https://img.shields.io/badge/rust-1.71.0+-93450a.svg?style=flat-square
[rust-version-link]: https://blog.rust-lang.org/2023/07/13/Rust-1.71.0.html
2 changes: 0 additions & 2 deletions command_attr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,6 @@ pub fn group(attr: TokenStream, input: TokenStream) -> TokenStream {
sub_groups,
} = options;

#[allow(clippy::redundant_clone)] // currently a false-positive on 1.70
let cooked = group.cooked.clone();

let n = group.name.with_suffix(GROUP);
Expand Down Expand Up @@ -781,7 +780,6 @@ pub fn check(_attr: TokenStream, input: TokenStream) -> TokenStream {
create_return_type_validation(&mut fun, &res);

let n = fun.name.clone();
#[allow(clippy::redundant_clone)] // currently a false-positive on 1.70
let n2 = name.clone();
let visibility = fun.visibility;
let name = if name == "<fn>" { fun.name.clone() } else { Ident::new(&name, Span::call_site()) };
Expand Down

0 comments on commit 8104a9c

Please sign in to comment.