diff --git a/packages/yew/src/dom_bundle/btag/listeners.rs b/packages/yew/src/dom_bundle/btag/listeners.rs index 7e832528458..82a46a169f2 100644 --- a/packages/yew/src/dom_bundle/btag/listeners.rs +++ b/packages/yew/src/dom_bundle/btag/listeners.rs @@ -11,6 +11,7 @@ use super::Apply; use crate::dom_bundle::{test_log, BSubtree, EventDescriptor}; use crate::virtual_dom::{Listener, Listeners}; +#[allow(clippy::empty_docs)] #[wasm_bindgen] extern "C" { // Duck-typing, not a real class on js-side. On rust-side, use impls of EventTarget below diff --git a/packages/yew/src/dom_bundle/subtree_root.rs b/packages/yew/src/dom_bundle/subtree_root.rs index 92efc76c9b5..809f935c098 100644 --- a/packages/yew/src/dom_bundle/subtree_root.rs +++ b/packages/yew/src/dom_bundle/subtree_root.rs @@ -27,9 +27,10 @@ pub trait EventGrating { fn set_cache_key(&self, key: u32); } -/// Duck-typing, not a real class on js-side. On rust-side, use impls of EventGrating below -#[wasm_bindgen] +#[allow(clippy::empty_docs)] +#[wasm_bindgen(skip_jsdoc)] extern "C" { + // Duck-typing, not a real class on js-side. On rust-side, use impls of EventGrating below type EventTargetable; #[wasm_bindgen(method, getter = __yew_subtree_id, structural)] fn subtree_id(this: &EventTargetable) -> Option;