Skip to content

Commit

Permalink
Try to fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed May 16, 2024
1 parent 491a2c1 commit 9e24e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/yew/src/dom_bundle/btag/listeners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions packages/yew/src/dom_bundle/subtree_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TreeId>;
Expand Down

0 comments on commit 9e24e93

Please sign in to comment.