From 76448379fffd80937f78749ef34e53747fd8a9ef Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Thu, 28 Sep 2023 12:42:12 -0400 Subject: [PATCH] cargo fmt --- leptos_reactive/src/runtime.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/leptos_reactive/src/runtime.rs b/leptos_reactive/src/runtime.rs index 37dc157bea..501057effd 100644 --- a/leptos_reactive/src/runtime.rs +++ b/leptos_reactive/src/runtime.rs @@ -16,7 +16,6 @@ use indexmap::IndexSet; use pin_project::pin_project; use rustc_hash::{FxHashMap, FxHasher}; use slotmap::{SecondaryMap, SlotMap, SparseSecondaryMap}; -use std::task::Poll; use std::{ any::{Any, TypeId}, cell::{Cell, RefCell}, @@ -25,6 +24,7 @@ use std::{ marker::PhantomData, pin::Pin, rc::Rc, + task::Poll, }; pub(crate) type PinnedFuture = Pin>>; @@ -1536,9 +1536,8 @@ impl ScopedFuture { pub fn new_current(fut: Fut) -> Self { Self { owner: Owner::current().expect( - "`ScopedFuture::new_current()` \ - to be called within an `Owner` \ - context", + "`ScopedFuture::new_current()` to be called within an `Owner` \ + context", ), future: fut, }