From 178a9bcc2f79b1efe8dc223c23a90b346917e4aa Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 7 Nov 2022 20:00:06 +0400 Subject: [PATCH] =?UTF-8?q?CI=20attempt=20=E2=84=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 +- crates/teloxide-core/src/codegen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 053bf592..5c6a7fdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: toolchain: beta features: "--features full" - rust: nightly - toolchain: nightly-2022-09-01 + toolchain: nightly-2022-09-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 5a11f801..4c71c165 100644 --- a/crates/teloxide-core/src/codegen.rs +++ b/crates/teloxide-core/src/codegen.rs @@ -41,7 +41,7 @@ pub fn reformat(text: String) -> String { let sh = Shell::new().unwrap(); ensure_rustfmt(&sh); - let rustfmt_toml = project_root().join("rustfmt.toml"); + let rustfmt_toml = project_root().join("../../rustfmt.toml"); let mut stdout = cmd!( sh, "rustup run {toolchain} rustfmt --config-path {rustfmt_toml} --config fn_single_line=true"