Merge pull request #146 from teloxide/pin_tooling

pin tooling
This commit is contained in:
Waffle Maybe 2021-12-19 15:06:52 +03:00 committed by GitHub
commit fd4796deaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 20 deletions

View file

@ -9,6 +9,25 @@ on:
name: Continuous integration
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-19
override: true
components: rustfmt
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
test:
runs-on: ubuntu-latest
strategy:
@ -56,7 +75,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
toolchain: nightly-2021-12-19
override: true
components: clippy
@ -65,22 +84,3 @@ jobs:
with:
command: clippy
args: --all-targets --all-features -- -D warnings
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

4
rust-toolchain.toml Normal file
View file

@ -0,0 +1,4 @@
[toolchain]
channel = "nightly-2021-12-19"
components = ["rustfmt", "clippy"]
profile = "minimal"

View file

@ -87,6 +87,8 @@
#![cfg_attr(all(feature = "full", docsrs), deny(rustdoc::broken_intra_doc_links))]
//#![deny(missing_docs)]
#![warn(clippy::print_stdout, clippy::dbg_macro)]
// Unless this becomes machine applicable, I'm not adding 334 #[must_use]s (waffle)
#![allow(clippy::return_self_not_must_use)]
// The internal helper macros.
#[macro_use]