From 1ad86890a4c1f886b29547ac1486ea62a2b1a8cb Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Fri, 16 Dec 2022 20:41:31 -0800 Subject: [PATCH] chore: reorganize miri --- packages/core/src/lazynodes.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/lazynodes.rs b/packages/core/src/lazynodes.rs index 178cd4e34..2b7c4feb3 100644 --- a/packages/core/src/lazynodes.rs +++ b/packages/core/src/lazynodes.rs @@ -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) }),