mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
chore: reorganize miri
This commit is contained in:
parent
ea9245b0f7
commit
1ad86890a4
1 changed files with 4 additions and 4 deletions
|
@ -43,14 +43,14 @@ impl<'a, 'b> LazyNodes<'a, 'b> {
|
|||
let mut slot = Some(val);
|
||||
|
||||
Self {
|
||||
#[cfg(miri)]
|
||||
inner: Box::new(move |f| {
|
||||
#[cfg(not(miri))]
|
||||
inner: smallbox!(move |f| {
|
||||
let val = slot.take().expect("cannot call LazyNodes twice");
|
||||
val(f)
|
||||
}),
|
||||
|
||||
#[cfg(not(miri))]
|
||||
inner: smallbox!(move |f| {
|
||||
#[cfg(miri)]
|
||||
inner: Box::new(move |f| {
|
||||
let val = slot.take().expect("cannot call LazyNodes twice");
|
||||
val(f)
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue