From 159d937e60230edbc6e39ff2d65adfe4b6b01f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Buczy=C5=84ski?= <56112903+tomekb234@users.noreply.github.com> Date: Tue, 28 Oct 2025 19:47:04 +0100 Subject: [PATCH] Specify broader lifetime for Children::top() result --- src/parser/tag.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/tag.rs b/src/parser/tag.rs index d6e5043..4896219 100644 --- a/src/parser/tag.rs +++ b/src/parser/tag.rs @@ -518,7 +518,7 @@ impl<'a, 'b> Children<'a, 'b> { /// assert_eq!(a.children().top().len(), 3); /// ``` #[inline] - pub fn top(&self) -> &RawChildren { + pub fn top(&self) -> &'b RawChildren { &self.0._children }