Skip to content

Commit a47ab67

Browse files
authored
Fix mismatched_lifetime_syntaxes warnings (#284)
See https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint Servo PR: servo/servo#41690 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
1 parent ee0b989 commit a47ab67

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

style/font_face.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ macro_rules! font_face_descriptors {
686686
///
687687
/// However both are required for the rule to represent an actual font face.
688688
#[cfg(feature = "servo")]
689-
pub fn font_face(&self) -> Option<FontFace> {
689+
pub fn font_face(&self) -> Option<FontFace<'_>> {
690690
if $( self.$m_ident.is_some() )&&* {
691691
Some(FontFace(self))
692692
} else {

style/servo/animation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct PropertyAnimation {
5252

5353
impl PropertyAnimation {
5454
/// Returns the given property longhand id.
55-
pub fn property_id(&self) -> PropertyDeclarationId {
55+
pub fn property_id(&self) -> PropertyDeclarationId<'_> {
5656
debug_assert_eq!(self.from.id(), self.to.id());
5757
self.from.id()
5858
}

style/servo/shadow_parts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn parse_part_mapping(input: &str) -> Option<Mapping<'_>> {
8484
}
8585

8686
/// <https://drafts.csswg.org/css-shadow-parts/#parsing-mapping-list>
87-
fn parse_mapping_list(input: &str) -> impl Iterator<Item = Mapping> {
87+
fn parse_mapping_list(input: &str) -> impl Iterator<Item = Mapping<'_>> {
8888
// Step 1. Let input be the string being parsed.
8989
// Step 2. Split the string input on commas. Let unparsed mappings be the resulting list of strings.
9090
let unparsed_mappings = input.split(',');

0 commit comments

Comments
 (0)