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 d42077a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/yew/src/dom_bundle/btag/listeners.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#![allow(clippy::empty_docs)]
// TODO: https://github.com/rustwasm/wasm-bindgen/pull/3946

use std::cell::RefCell;
use std::collections::HashMap;
use std::ops::Deref;
Expand Down
5 changes: 4 additions & 1 deletion packages/yew/src/dom_bundle/subtree_root.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! Per-subtree state of apps
#![allow(clippy::empty_docs)]
// TODO: https://github.com/rustwasm/wasm-bindgen/pull/3946

use std::borrow::Cow;
use std::cell::RefCell;
use std::collections::HashSet;
Expand Down Expand Up @@ -27,9 +30,9 @@ 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]
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 d42077a

Please sign in to comment.