Skip to content

Commit c59d562

Browse files
committed
test: fix coverage attr to nightly
1 parent 589c4ba commit c59d562

File tree

3 files changed

+7431
-2
lines changed

3 files changed

+7431
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ version = "0.2.0-alpha.1"
6363
missing_docs = "warn"
6464
unreachable_pub = "warn"
6565
rust_2021_compatibility = { level = "warn", priority = -1 }
66-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }
66+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }
6767

6868
[workspace.lints.clippy]
6969
pedantic = "warn"

contracts/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl MyContract { }
4646
)]
4747
#![cfg_attr(not(feature = "std"), no_std, no_main)]
4848
#![deny(rustdoc::broken_intra_doc_links)]
49-
#![feature(coverage_attribute)]
49+
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
5050
extern crate alloc;
5151

5252
pub mod access;

0 commit comments

Comments
 (0)