Explorar el Código

make 'static lifetime explicit

Evan Almloff hace 2 años
padre
commit
fbc89a7088
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/rsx/src/lib.rs

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

@@ -64,7 +64,7 @@ impl<Ctx: HotReloadingContext> CallBody<Ctx> {
         &self,
         template: Option<CallBody<Ctx>>,
         location: &'static str,
-    ) -> Option<Template> {
+    ) -> Option<Template<'static>> {
         let mut renderer: TemplateRenderer<Ctx> = TemplateRenderer {
             roots: &self.roots,
             phantom: std::marker::PhantomData,