Преглед изворни кода

wrap the result of render_with_location in an option

Evan Almloff пре 1 година
родитељ
комит
af75fb855f
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      packages/rsx/src/lib.rs

+ 3 - 1
packages/rsx/src/lib.rs

@@ -85,7 +85,9 @@ impl CallBody {
         };
 
         quote! {
-            #body
+            Some({
+                #body
+            })
         }
     }
 }