Skip to content

Commit

Permalink
Bug 1917746 - Fix Rust 1.82's new elided_named_lifetimes warning. r=e…
Browse files Browse the repository at this point in the history
…milio

This warning was introduced by rust-lang/rust#129207.

Differential Revision: https://phabricator.services.mozilla.com/D221462
  • Loading branch information
nicolas-guichard committed Sep 10, 2024
1 parent 3de71fc commit 86a8c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gfx/webrender_bindings/src/moz2d_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct CachedReader<'a> {

impl<'a> CachedReader<'a> {
/// Creates a new CachedReader.
pub fn new(buf: &'a [u8]) -> CachedReader {
pub fn new(buf: &'a [u8]) -> Self {
CachedReader {
reader: BlobReader::new(buf),
cache: BTreeMap::new(),
Expand Down
2 changes: 1 addition & 1 deletion servo/ports/geckolib/glue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6373,7 +6373,7 @@ struct PrioritizedPropertyIter<'a> {
}

impl<'a> PrioritizedPropertyIter<'a> {
fn new(properties: &'a [PropertyValuePair]) -> PrioritizedPropertyIter {
fn new(properties: &'a [PropertyValuePair]) -> Self {
use style::values::animated::compare_property_priority;

// If we fail to convert a nsCSSPropertyID into a PropertyId we
Expand Down

0 comments on commit 86a8c90

Please sign in to comment.