Skip to content

Commit

Permalink
Silence false positive dead code warnings for napi-exposed free funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Xanewok committed Jul 7, 2024
1 parent 49589ff commit 0ed3644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/edr_napi/src/trace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// In contrast to the functions in the `#[napi] impl XYZ` block,
// the free functions `#[napi] pub fn` are exported by napi-rs but
// are considered dead code in the (lib test) target.
// For now, we silence the relevant warnings, as we need to mimick
// the original API while we rewrite the stack trace refinement to Rust.
#![cfg_attr(test, allow(dead_code))]

use std::sync::Arc;

use edr_evm::{interpreter::OpCode, trace::BeforeMessage};
Expand Down

0 comments on commit 0ed3644

Please sign in to comment.