Skip to content

Commit

Permalink
clippy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1311 committed Aug 27, 2022
1 parent ec36c2c commit 759877a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/yew/src/dom_bundle/utils.rs
Expand Up @@ -86,6 +86,7 @@ mod tests {
use crate::dom_bundle::BSubtree;
use crate::html::AnyScope;

#[allow(dead_code)]
pub fn setup_parent() -> (BSubtree, AnyScope, Element) {
let scope = AnyScope::test();
let parent = document().create_element("div").unwrap();
Expand All @@ -98,4 +99,6 @@ mod tests {
}

#[cfg(test)]
// this is needed because clippy doesn't like the import not being used
#[allow(unused_imports)]
pub(super) use tests::*;

0 comments on commit 759877a

Please sign in to comment.