Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Sep 28, 2023
1 parent 31cd000 commit 7644837
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions leptos_reactive/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -25,6 +24,7 @@ use std::{
marker::PhantomData,
pin::Pin,
rc::Rc,
task::Poll,
};

pub(crate) type PinnedFuture<T> = Pin<Box<dyn Future<Output = T>>>;
Expand Down Expand Up @@ -1536,9 +1536,8 @@ impl<Fut: Future> ScopedFuture<Fut> {
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,
}
Expand Down

0 comments on commit 7644837

Please sign in to comment.