mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Update pinned nightly
This commit is contained in:
parent
8426ffac91
commit
4eb80e0640
4 changed files with 8 additions and 9 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -19,7 +19,7 @@ env:
|
|||
# When updating this, also update:
|
||||
# - crates/teloxide-core/src/codegen.rs
|
||||
# - rust-toolchain.toml
|
||||
rust_nightly: nightly-2022-12-23
|
||||
rust_nightly: nightly-2023-05-28
|
||||
# When updating this, also update:
|
||||
# - **/README.md
|
||||
# - **/src/lib.rs
|
||||
|
@ -88,7 +88,7 @@ jobs:
|
|||
toolchain: beta
|
||||
features: "--features full"
|
||||
- rust: nightly
|
||||
toolchain: nightly-2022-12-23
|
||||
toolchain: nightly-2023-05-28
|
||||
features: "--features full nightly"
|
||||
- rust: msrv
|
||||
toolchain: 1.64.0
|
||||
|
|
|
@ -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-2022-12-23";
|
||||
let toolchain = "nightly-2023-05-28";
|
||||
|
||||
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-2022-12-23";
|
||||
let toolchain = "nightly-2023-05-28";
|
||||
|
||||
let sh = Shell::new().unwrap();
|
||||
ensure_rustfmt(&sh);
|
||||
|
|
|
@ -12,10 +12,9 @@ use tokio::io::{AsyncWrite, AsyncWriteExt};
|
|||
use crate::{errors::DownloadError, net::file_url};
|
||||
|
||||
/// A trait for downloading files from Telegram.
|
||||
pub trait Download<'w>
|
||||
/* FIXME(waffle): ideally, this lifetime ('w) shouldn't be here, but we can't help it without
|
||||
* GATs */
|
||||
{
|
||||
// FIXME(waffle): ideally, this lifetime ('w) shouldn't be here, but we can't
|
||||
// help it without GATs
|
||||
pub trait Download<'w> {
|
||||
/// An error returned from [`download_file`](Self::download_file).
|
||||
type Err;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[toolchain]
|
||||
channel = "nightly-2022-12-23"
|
||||
channel = "nightly-2023-05-28"
|
||||
components = ["rustfmt", "clippy"]
|
||||
profile = "minimal"
|
||||
|
|
Loading…
Reference in a new issue