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

UltraBlame original commit: 22a83ceba50b60d9407cbd3afc0a620b6c5d9eed
  • Loading branch information
marco-c committed Sep 16, 2024
1 parent 104c6db commit efd77e9
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> {

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;


Expand Down

0 comments on commit efd77e9

Please sign in to comment.