瀏覽代碼

chore: reorganize miri

Jonathan Kelley 2 年之前
父節點
當前提交
1ad86890a4
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      packages/core/src/lazynodes.rs

+ 4 - 4
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)
             }),