update nightly

This commit is contained in:
Maybe Waffle 2024-03-21 12:24:07 +01:00
parent d9c0fca407
commit cedf223b0d
3 changed files with 6 additions and 5 deletions

View file

@ -19,7 +19,8 @@ env:
# When updating this, also update:
# - crates/teloxide-core/src/codegen.rs
# - rust-toolchain.toml
rust_nightly: nightly-2023-09-27
# - below in the test matrix
rust_nightly: nightly-2024-03-20
# When updating this, also update:
# - **/README.md
# - **/src/lib.rs
@ -90,7 +91,7 @@ jobs:
toolchain: beta
features: "--features full"
- rust: nightly
toolchain: nightly-2023-09-27
toolchain: nightly-2024-03-20
features: "--features full nightly"
- rust: msrv
toolchain: 1.68.0

View file

@ -23,7 +23,7 @@ use xshell::{cmd, Shell};
fn ensure_rustfmt(sh: &Shell) {
// FIXME(waffle): find a better way to set toolchain
let toolchain = "nightly-2023-09-27";
let toolchain = "nightly-2024-03-20";
let version = cmd!(sh, "rustup run {toolchain} rustfmt --version").read().unwrap_or_default();
@ -36,7 +36,7 @@ fn ensure_rustfmt(sh: &Shell) {
}
pub fn reformat(text: String) -> String {
let toolchain = "nightly-2023-09-27";
let toolchain = "nightly-2024-03-20";
let sh = Shell::new().unwrap();
ensure_rustfmt(&sh);

View file

@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2023-09-27"
channel = "nightly-2024-03-20"
components = ["rustfmt", "clippy"]
profile = "minimal"