Skip to content

Commit

Permalink
Forward compatibility fix for breakage due to a soundness fix in rustc (
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk authored Aug 31, 2022
1 parent c2d84be commit 5de8f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sycamore/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl<'a, G: GenericNode, F: FnOnce(Scope<'a>) -> G + 'a> ElementBuilderOrView<'a
/// // etc...
/// ```
pub fn tag<'a, G: GenericNode>(
t: impl AsRef<str>,
t: impl AsRef<str> + 'a,
) -> ElementBuilder<'a, G, impl FnOnce(Scope<'a>) -> G> {
ElementBuilder::new(move |_| G::element_from_tag(t.as_ref()))
}
Expand Down Expand Up @@ -423,7 +423,7 @@ impl<'a, G: GenericNode, F: FnOnce(Scope<'a>) -> G + 'a> ElementBuilder<'a, G, F
/// ```
pub fn c(
self,
c: impl ElementBuilderOrView<'a, G>,
c: impl ElementBuilderOrView<'a, G> + 'a,
) -> ElementBuilder<'a, G, impl FnOnce(Scope<'a>) -> G + 'a> {
self.map(|cx, el| render::insert(cx, el, c.into_view(cx), None, None, true))
}
Expand Down

0 comments on commit 5de8f76

Please sign in to comment.