Skip to content

Commit

Permalink
remove false-positive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
photovoltex committed Mar 24, 2024
1 parent c8f0c97 commit 1ee4039
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/command/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ extern "C" {
/// [Events](https://tauri.app/v1/guides/features/events)
#[cfg(feature = "event")]
#[doc(cfg(feature = "event"))]
// for some reason this doc comment is seen as unused...
#[allow(unused_doc_comments)]
#[wasm_bindgen(catch, js_namespace = ["window", "__TAURI__", "event"])]
pub async fn listen(
event: &str,
Expand Down

0 comments on commit 1ee4039

Please sign in to comment.