Parcourir la source

wrap the result of render_with_location in an option

Evan Almloff il y a 1 an
Parent
commit
af75fb855f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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
+            })
         }
     }
 }