chore: cargo fmt

This commit is contained in:
Greg Johnston 2024-06-25 20:42:34 -04:00
parent 598c59b9c2
commit 081f4ec550
3 changed files with 14 additions and 5 deletions

View file

@ -121,7 +121,10 @@ where
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
self,
buf: &mut StreamBuilder, position: &mut Position, escape: bool) where
buf: &mut StreamBuilder,
position: &mut Position,
escape: bool,
) where
Self: Sized,
{
// insert the opening tag synchronously
@ -244,7 +247,10 @@ where
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
self,
buf: &mut StreamBuilder, position: &mut Position, escape: bool) where
buf: &mut StreamBuilder,
position: &mut Position,
escape: bool,
) where
Self: Sized,
{
// insert the opening tag synchronously

View file

@ -46,7 +46,7 @@ macro_rules! render_primitive {
R::insert_node(parent, self.0.as_ref(), marker);
}
fn insert_before_this(&self,
fn insert_before_this(&self,
child: &mut dyn Mountable<R>,
) -> bool {
child.mount(parent, Some(self.0.as_ref()));
@ -316,7 +316,7 @@ impl<R: Renderer> Mountable<R> for ReadGuardStringState<R> {
R::insert_node(parent, self.node.as_ref(), marker);
}
fn insert_before_this(&self,
fn insert_before_this(&self,
child: &mut dyn Mountable<R>,
) -> bool {
child.mount(parent, Some(self.node.as_ref()));

View file

@ -228,7 +228,10 @@ where
fn to_html_async_with_buf<const OUT_OF_ORDER: bool>(
self,
buf: &mut StreamBuilder, position: &mut Position, escape: bool) {
buf: &mut StreamBuilder,
position: &mut Position,
escape: bool,
) {
for item in self.items.into_iter() {
let item = (self.view_fn)(item);
item.to_html_async_with_buf::<OUT_OF_ORDER>(buf, position, escape);