Skip to content

Commit 6e0ac72

Browse files
authored
Merge pull request #154 from g2p/fix-attr-lifetime
2 parents 6d1e03b + 33f0aea commit 6e0ac72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/element_ref/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<'a> ElementRef<'a> {
7171
}
7272

7373
/// Returns the value of an attribute.
74-
pub fn attr(&self, attr: &str) -> Option<&str> {
74+
pub fn attr(&self, attr: &str) -> Option<&'a str> {
7575
self.value().attr(attr)
7676
}
7777

0 commit comments

Comments
 (0)