Skip to content

Commit 0d9b59b

Browse files
Bug 1917746 - Fix Rust 1.82's new elided_named_lifetimes warning. r=emilio
This warning was introduced by rust-lang/rust#129207. Differential Revision: https://phabricator.services.mozilla.com/D221462
1 parent 5c37ebc commit 0d9b59b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gfx/webrender_bindings/src/moz2d_renderer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ struct CachedReader<'a> {
307307

308308
impl<'a> CachedReader<'a> {
309309
/// Creates a new CachedReader.
310-
pub fn new(buf: &'a [u8]) -> CachedReader {
310+
pub fn new(buf: &'a [u8]) -> Self {
311311
CachedReader {
312312
reader: BlobReader::new(buf),
313313
cache: BTreeMap::new(),

servo/ports/geckolib/glue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6373,7 +6373,7 @@ struct PrioritizedPropertyIter<'a> {
63736373
}
63746374

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

63796379
// If we fail to convert a nsCSSPropertyID into a PropertyId we

0 commit comments

Comments
 (0)