diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4461986a0..bea99c508 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,7 +110,7 @@ jobs: components: llvm-tools-preview - run: cargo test-all-features env: - RUSTFLAGS: '-Zinstrument-coverage' + RUSTFLAGS: '-C instrument-coverage -C link-dead-code' LLVM_PROFILE_FILE: '%p-%m.profraw' - name: Install grcov run: | diff --git a/config/src/prelude.rs b/config/src/prelude.rs index aa9a20b65..c000154db 100644 --- a/config/src/prelude.rs +++ b/config/src/prelude.rs @@ -2,7 +2,6 @@ // https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html pub use alloc::{ borrow::ToOwned, - boxed::Box, format, string::{String, ToString}, vec, diff --git a/light-client-verifier/src/prelude.rs b/light-client-verifier/src/prelude.rs index 57a0cedc3..ca8015e71 100644 --- a/light-client-verifier/src/prelude.rs +++ b/light-client-verifier/src/prelude.rs @@ -1,13 +1,10 @@ // Re-export according to alloc::prelude::v1 because it is not yet stabilized // https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html +#[allow(unused_imports)] +pub use alloc::vec; pub use alloc::{ - borrow::ToOwned, boxed::Box, - format, string::{String, ToString}, - vec, vec::Vec, }; -// will be included in 2021 edition. -pub use core::convert::{TryFrom, TryInto}; pub use core::prelude::v1::*; diff --git a/proto/src/prelude.rs b/proto/src/prelude.rs index aa9a20b65..593052fb3 100644 --- a/proto/src/prelude.rs +++ b/proto/src/prelude.rs @@ -1,11 +1,12 @@ // Re-export according to alloc::prelude::v1 because it is not yet stabilized // https://doc.rust-lang.org/src/alloc/prelude/v1.rs.html + +#[allow(unused_imports)] +pub use alloc::vec; pub use alloc::{ borrow::ToOwned, - boxed::Box, format, string::{String, ToString}, - vec, vec::Vec, }; pub use core::prelude::v1::*;