diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d43546e..6c6f0e38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ env: # When updating this, also update: # - crates/teloxide-core/src/codegen.rs # - rust-toolchain.toml - rust_nightly: nightly-2022-09-23 + rust_nightly: nightly-2022-12-23 # When updating this, also update: # - **/README.md # - **/src/lib.rs @@ -87,7 +87,7 @@ jobs: toolchain: beta features: "--features full" - rust: nightly - toolchain: nightly-2022-09-23 + toolchain: nightly-2022-12-23 features: "--all-features" - rust: msrv toolchain: 1.64.0 diff --git a/crates/teloxide-core/src/codegen.rs b/crates/teloxide-core/src/codegen.rs index 4c71c165..5ff10c33 100644 --- a/crates/teloxide-core/src/codegen.rs +++ b/crates/teloxide-core/src/codegen.rs @@ -24,7 +24,7 @@ use xshell::{cmd, Shell}; fn ensure_rustfmt(sh: &Shell) { // FIXME(waffle): find a better way to set toolchain - let toolchain = "nightly-2022-09-23"; + let toolchain = "nightly-2022-12-23"; let version = cmd!(sh, "rustup run {toolchain} rustfmt --version").read().unwrap_or_default(); @@ -37,7 +37,7 @@ fn ensure_rustfmt(sh: &Shell) { } pub fn reformat(text: String) -> String { - let toolchain = "nightly-2022-09-23"; + let toolchain = "nightly-2022-12-23"; let sh = Shell::new().unwrap(); ensure_rustfmt(&sh); diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b4990f3d..2cbd2d33 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "nightly-2022-09-23" +channel = "nightly-2022-12-23" components = ["rustfmt", "clippy"] profile = "minimal"