Skip to content

Commit e923934

Browse files
committed
accel: add initial flag for future coverage exclusion
1 parent 064a5ca commit e923934

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ numpy = "^0.29"
4141
[dev-dependencies]
4242
ntest = "^0.9"
4343

44+
[lints.rust]
45+
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(coverage_nightly)"] }
46+
4447
[profile.dev]
4548
opt-level = 2
4649
debug-assertions = true

src/accel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Copyright (C) 2023-2026 Drexel University.
44
// Licensed under the MIT license, see LICENSE.md for details.
55
// SPDX-License-Identifier: MIT
6-
6+
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
77
use pyo3::{exceptions::PyRuntimeError, prelude::*};
88

99
mod als;

0 commit comments

Comments
 (0)