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) }