Skip to content

Commit

Permalink
fix: compilation error on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Aug 17, 2023
1 parent 881dc46 commit 49812e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -22,6 +23,6 @@ impl Application<()> for SimpleComponent {
}

/// creates a program from SimpleComponent
pub fn simple_program() -> Program<SimpleComponent, ()> {
pub fn simple_program() -> ManuallyDrop<Program<SimpleComponent, ()>> {
Program::mount_to_body(SimpleComponent)
}

0 comments on commit 49812e9

Please sign in to comment.