From 0f01abcb5c32580c42065da41bb271dc1d8289b5 Mon Sep 17 00:00:00 2001 From: Jet Li Date: Tue, 5 Mar 2024 10:17:54 +0800 Subject: [PATCH] cargo fmt --- crates/yew-hooks/src/hooks/use_visible.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/yew-hooks/src/hooks/use_visible.rs b/crates/yew-hooks/src/hooks/use_visible.rs index b9da72a..418e35d 100644 --- a/crates/yew-hooks/src/hooks/use_visible.rs +++ b/crates/yew-hooks/src/hooks/use_visible.rs @@ -1,11 +1,7 @@ -use wasm_bindgen::{ - closure::Closure, - JsCast, -}; -use web_sys::{IntersectionObserver, IntersectionObserverEntry}; -use yew::{NodeRef, functional::*}; use crate::use_effect_once; - +use wasm_bindgen::{closure::Closure, JsCast}; +use web_sys::{IntersectionObserver, IntersectionObserverEntry}; +use yew::{functional::*, NodeRef}; #[hook] /// Check if an element is visible. Internally, it uses an [`IntersectionObserver`] to receive