File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ mod tests {
602
602
use super :: * ;
603
603
use crate :: test_helpers:: test_type_traits_non_clonable;
604
604
605
- #[ cfg_attr( coverage_nightly, no_coverage ) ]
605
+ #[ cfg_attr( coverage_nightly, coverage ( off ) ) ]
606
606
fn test_fun ( _ctx : & ScanContext , args : Vec < Value > ) -> Option < Value > {
607
607
drop ( args) ;
608
608
None
Original file line number Diff line number Diff line change 69
69
#![ deny( clippy:: cargo) ]
70
70
// Handled by cargo-deny
71
71
#![ allow( clippy:: multiple_crate_versions) ]
72
- #![ cfg_attr( coverage_nightly, feature( no_coverage ) ) ]
72
+ #![ cfg_attr( coverage_nightly, feature( coverage_attribute ) ) ]
73
73
74
74
// Used in integration tests, not in the library.
75
75
// This is to remove the "unused_crate_dependencies" warning, maybe a better solution
Original file line number Diff line number Diff line change @@ -659,7 +659,7 @@ mod tests {
659
659
use super :: * ;
660
660
use crate :: test_helpers:: { test_type_traits, test_type_traits_non_clonable} ;
661
661
662
- #[ cfg_attr( coverage_nightly, no_coverage ) ]
662
+ #[ cfg_attr( coverage_nightly, coverage ( off ) ) ]
663
663
fn test_fun ( _ctx : & ScanContext , args : Vec < Value > ) -> Option < Value > {
664
664
drop ( args) ;
665
665
None
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub(super) fn ord_lookup(dll_name: &[u8], ord: u16) -> Vec<u8> {
19
19
format ! ( "ord{ord}" ) . into_bytes ( )
20
20
}
21
21
22
- #[ cfg_attr( coverage_nightly, no_coverage ) ]
22
+ #[ cfg_attr( coverage_nightly, coverage ( off ) ) ]
23
23
fn wsock32_ord_lookup ( ord : u16 ) -> Option < & ' static [ u8 ] > {
24
24
match ord {
25
25
1 => Some ( b"accept" ) ,
@@ -143,7 +143,7 @@ fn wsock32_ord_lookup(ord: u16) -> Option<&'static [u8]> {
143
143
}
144
144
}
145
145
146
- #[ cfg_attr( coverage_nightly, no_coverage ) ]
146
+ #[ cfg_attr( coverage_nightly, coverage ( off ) ) ]
147
147
fn oleaut32_ord_lookup ( ord : u16 ) -> Option < & ' static [ u8 ] > {
148
148
match ord {
149
149
2 => Some ( b"SysAllocString" ) ,
You can’t perform that action at this time.
0 commit comments