mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-22 06:45:37 +01:00
Use correct toolchain for codegen
This commit is contained in:
parent
02e34bc77a
commit
86cac381e7
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ use xshell::{cmd, Shell};
|
||||||
|
|
||||||
fn ensure_rustfmt(sh: &Shell) {
|
fn ensure_rustfmt(sh: &Shell) {
|
||||||
// FIXME(waffle): find a better way to set toolchain
|
// FIXME(waffle): find a better way to set toolchain
|
||||||
let toolchain = "nightly-2022-01-17";
|
let toolchain = "nightly-2022-09-23";
|
||||||
|
|
||||||
let version = cmd!(sh, "rustup run {toolchain} rustfmt --version")
|
let version = cmd!(sh, "rustup run {toolchain} rustfmt --version")
|
||||||
.read()
|
.read()
|
||||||
|
@ -38,7 +38,7 @@ fn ensure_rustfmt(sh: &Shell) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reformat(text: String) -> String {
|
pub fn reformat(text: String) -> String {
|
||||||
let toolchain = "nightly-2022-01-17";
|
let toolchain = "nightly-2022-09-23";
|
||||||
|
|
||||||
let sh = Shell::new().unwrap();
|
let sh = Shell::new().unwrap();
|
||||||
ensure_rustfmt(&sh);
|
ensure_rustfmt(&sh);
|
||||||
|
|
Loading…
Add table
Reference in a new issue