From bb0f839c2f14022ce217e0a55d7ed868f4977d13 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Fri, 8 Dec 2023 12:42:18 +0100 Subject: [PATCH] Lint with nightly While `clippy` now allows `TBD` to be used in `since` parameter of `deprecated` attribute it is only available in the newest, nightly, version. Switch `clippy` version to nightly to enable the `TBD` value. --- .github/workflows/rust.yml | 4 +++- bitcoin/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 09c6000b..02aedb92 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,6 @@ jobs: - name: Running test script env: DO_COV: true - DO_LINT: true AS_DEPENDENCY: false DO_DOCS: true DO_FEATURE_MATRIX: true @@ -54,8 +53,11 @@ jobs: uses: actions/checkout@v4 - name: Checkout Toolchain uses: dtolnay/rust-toolchain@nightly + - name: Install clippy + run: rustup component add clippy - name: Running test script env: + DO_LINT: true DO_FMT: false DO_BENCH: true AS_DEPENDENCY: false diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index 1dbd6a58..70aedcc4 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -171,7 +171,7 @@ mod prelude { pub use alloc::sync; #[cfg(any(feature = "std", test))] - pub use std::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, BorrowMut, Cow, ToOwned}, slice, rc, sync}; + pub use std::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Borrow, BorrowMut, Cow, ToOwned}, rc, sync}; #[cfg(all(not(feature = "std"), not(test)))] pub use alloc::collections::{BTreeMap, BTreeSet, btree_map, BinaryHeap};