Skip to content

Commit

Permalink
fix: let mount_to_body accept FnOnce closures (closes #2115) (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
NKID00 authored Dec 18, 2023
1 parent 21f4c27 commit 8122941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leptos_dom/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ pub enum MountKind<'a> {
/// Runs the provided closure and mounts the result to the `<body>`.
pub fn mount_to_body<F, N>(f: F)
where
F: Fn() -> N + 'static,
F: FnOnce() -> N + 'static,
N: IntoView,
{
#[cfg(all(feature = "web", feature = "ssr"))]
Expand Down

0 comments on commit 8122941

Please sign in to comment.