commit 5d8322b1d0ba235094e5824470a7a11531b967e2
parent 8a676065ca3ee64987a250908ce945eb0a03d7c7
Author: Nico Burns <nico@nicoburns.com>
Date: Mon, 15 Dec 2025 19:03:58 +0000
Bug 2005254: Stylo: Fix "confusing elided lifetime" warnings (r=firefox-style-system-reviewers,dshin)
Differential Revision: https://phabricator.services.mozilla.com/D275844
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/servo/components/style/font_face.rs b/servo/components/style/font_face.rs
@@ -686,7 +686,7 @@ macro_rules! font_face_descriptors {
///
/// However both are required for the rule to represent an actual font face.
#[cfg(feature = "servo")]
- pub fn font_face(&self) -> Option<FontFace> {
+ pub fn font_face(&self) -> Option<FontFace<'_>> {
if $( self.$m_ident.is_some() )&&* {
Some(FontFace(self))
} else {
diff --git a/servo/components/style/servo/animation.rs b/servo/components/style/servo/animation.rs
@@ -53,7 +53,7 @@ pub struct PropertyAnimation {
impl PropertyAnimation {
/// Returns the given property longhand id.
- pub fn property_id(&self) -> PropertyDeclarationId {
+ pub fn property_id(&self) -> PropertyDeclarationId<'_> {
debug_assert_eq!(self.from.id(), self.to.id());
self.from.id()
}
diff --git a/servo/components/style/servo/shadow_parts.rs b/servo/components/style/servo/shadow_parts.rs
@@ -85,7 +85,7 @@ pub fn parse_part_mapping(input: &str) -> Option<Mapping<'_>> {
}
/// <https://drafts.csswg.org/css-shadow-parts/#parsing-mapping-list>
-fn parse_mapping_list(input: &str) -> impl Iterator<Item = Mapping> {
+fn parse_mapping_list(input: &str) -> impl Iterator<Item = Mapping<'_>> {
// Step 1. Let input be the string being parsed.
// Step 2. Split the string input on commas. Let unparsed mappings be the resulting list of strings.
let unparsed_mappings = input.split(',');