napi-rs/bench/src/noop.rs

7 lines
146 B
Rust
Raw Normal View History

use napi::{ContextlessResult, Env, JsUndefined};
#[contextless_function]
pub fn noop(_env: Env) -> ContextlessResult<JsUndefined> {
Ok(None)
}