Skip to content

Commit

Permalink
fix ssr cache type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed Jun 6, 2024
1 parent f578723 commit 5f4626d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/dioxus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use dioxus_core;
pub use dioxus_core::Ok;

#[cfg(feature = "launch")]
#[cfg_attr(docsrs, doc(cfg(feature = "launch")))]
Expand Down
4 changes: 2 additions & 2 deletions packages/ssr/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ fn from_template_recursive(
*chain += Segment::RootNodeMarker;
}
write!(chain, "\"")?;
Ok(())
std::fmt::Result::Ok(())
})?;
}

Expand Down Expand Up @@ -240,7 +240,7 @@ fn from_template_recursive(
write!(chain, "<!--node-id")?;
*chain += Segment::RootNodeMarker;
write!(chain, "-->")?;
Ok(())
std::fmt::Result::Ok(())
})?;
}
write!(
Expand Down

0 comments on commit 5f4626d

Please sign in to comment.