From 49812e98bfb9aabae15de8a810cd59ef6fb40918 Mon Sep 17 00:00:00 2001 From: Jovansonlee Cesar Date: Fri, 18 Aug 2023 02:08:36 +0800 Subject: [PATCH] fix: compilation error on tests --- tests/test_fixtures.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_fixtures.rs b/tests/test_fixtures.rs index 6630b5906..9c89a83a2 100644 --- a/tests/test_fixtures.rs +++ b/tests/test_fixtures.rs @@ -5,6 +5,7 @@ //! use log::*; use sauron::{html::div, Application, Cmd, Node, Program}; +use std::mem::ManuallyDrop; /// This is a simple component for the puprpose of testing #[derive(Copy, Clone, Debug)] @@ -22,6 +23,6 @@ impl Application<()> for SimpleComponent { } /// creates a program from SimpleComponent -pub fn simple_program() -> Program { +pub fn simple_program() -> ManuallyDrop> { Program::mount_to_body(SimpleComponent) }