Skip to content

Commit

Permalink
chore: replace no_coverage attribute with new coverage attribute (#…
Browse files Browse the repository at this point in the history
…268)

* replace no_coverage with coverage('off')

Signed-off-by: Francis <[email protected]>

* trying with just coverage(off)

Signed-off-by: Francis <[email protected]>

* restoring no_coverage in lib and adding coverage(off) to typesrcipt synthesizer mod.rs

Signed-off-by: Francis <[email protected]>

* replace no_coverage with coverage_attribute

Signed-off-by: Francis <[email protected]>

---------

Signed-off-by: Francis <[email protected]>
  • Loading branch information
colifran authored Sep 19, 2023
1 parent 5ae883d commit 536bcc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(coverage_nightly, feature(no_coverage))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

use indexmap::IndexMap;
use parser::condition::ConditionFunction;
Expand Down
2 changes: 1 addition & 1 deletion src/synthesizer/typescript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Typescript {
}

impl Typescript {
#[cfg_attr(coverage_nightly, no_coverage)]
#[cfg_attr(coverage_nightly, coverage(off))]
#[deprecated(note = "Prefer using the Synthesizer API instead")]
pub fn output(ir: CloudformationProgramIr) -> String {
let mut output = Vec::new();
Expand Down

0 comments on commit 536bcc9

Please sign in to comment.