chore: reorganize miri

This commit is contained in:
Jonathan Kelley committed 2022-12-16 20:41:31 -08:00
1 parent ea9245b0f7
commit 1ad86890a4
1 file changed
+4 -4
+4 -4
View File
@@ -43,14 +43,14 @@ impl<'a, 'b> LazyNodes<'a, 'b> {
let mut slot = Some(val); let mut slot = Some(val);
Self { Self {
#[cfg(miri)] #[cfg(not(miri))]
inner: Box::new(move |f| { inner: smallbox!(move |f| {
let val = slot.take().expect("cannot call LazyNodes twice"); let val = slot.take().expect("cannot call LazyNodes twice");
val(f) val(f)
}), }),
#[cfg(not(miri))] #[cfg(miri)]
inner: smallbox!(move |f| { inner: Box::new(move |f| {
let val = slot.take().expect("cannot call LazyNodes twice"); let val = slot.take().expect("cannot call LazyNodes twice");
val(f) val(f)
}), }),