File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ enum DateTimeStyleValue {
33
33
34
34
// This is just a helper to make it easier to convert
35
35
// a value provided to FluentArgs into an option value.
36
- impl < ' l > From < & FluentValue < ' l > > for DateTimeStyleValue {
36
+ impl From < & FluentValue < ' _ > > for DateTimeStyleValue {
37
37
fn from ( input : & FluentValue ) -> Self {
38
38
if let FluentValue :: String ( s) = input {
39
39
match s. as_ref ( ) {
@@ -73,7 +73,7 @@ impl DateTimeOptions {
73
73
}
74
74
}
75
75
76
- impl < ' l > From < & FluentArgs < ' l > > for DateTimeOptions {
76
+ impl From < & FluentArgs < ' _ > > for DateTimeOptions {
77
77
fn from ( input : & FluentArgs ) -> Self {
78
78
let mut opts = Self :: default ( ) ;
79
79
opts. merge ( input) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ pub enum FluentValue<'source> {
84
84
Error ,
85
85
}
86
86
87
- impl < ' s > PartialEq for FluentValue < ' s > {
87
+ impl PartialEq for FluentValue < ' _ > {
88
88
fn eq ( & self , other : & Self ) -> bool {
89
89
match ( self , other) {
90
90
( FluentValue :: String ( s) , FluentValue :: String ( s2) ) => s == s2,
@@ -95,7 +95,7 @@ impl<'s> PartialEq for FluentValue<'s> {
95
95
}
96
96
}
97
97
98
- impl < ' s > Clone for FluentValue < ' s > {
98
+ impl Clone for FluentValue < ' _ > {
99
99
fn clone ( & self ) -> Self {
100
100
match self {
101
101
FluentValue :: String ( s) => FluentValue :: String ( s. clone ( ) ) ,
@@ -291,7 +291,7 @@ impl<'source> FluentValue<'source> {
291
291
}
292
292
}
293
293
294
- impl < ' source > From < String > for FluentValue < ' source > {
294
+ impl From < String > for FluentValue < ' _ > {
295
295
fn from ( s : String ) -> Self {
296
296
FluentValue :: String ( s. into ( ) )
297
297
}
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl FromStr for FluentNumber {
175
175
}
176
176
}
177
177
178
- impl < ' l > From < FluentNumber > for FluentValue < ' l > {
178
+ impl From < FluentNumber > for FluentValue < ' _ > {
179
179
fn from ( input : FluentNumber ) -> Self {
180
180
FluentValue :: Number ( input)
181
181
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn fluent_date_time_builtin() {
57
57
None ,
58
58
}
59
59
60
- impl < ' l > From < & FluentValue < ' l > > for DateTimeStyleValue {
60
+ impl From < & FluentValue < ' _ > > for DateTimeStyleValue {
61
61
fn from ( input : & FluentValue ) -> Self {
62
62
if let FluentValue :: String ( s) = input {
63
63
match s. as_ref ( ) {
@@ -91,7 +91,7 @@ fn fluent_date_time_builtin() {
91
91
}
92
92
}
93
93
94
- impl < ' l > From < & FluentArgs < ' l > > for DateTimeOptions {
94
+ impl From < & FluentArgs < ' _ > > for DateTimeOptions {
95
95
fn from ( input : & FluentArgs ) -> Self {
96
96
let mut opts = Self :: default ( ) ;
97
97
opts. merge ( input) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pub trait Slice<'s>: AsRef<str> + Clone + PartialEq {
9
9
fn trim ( & mut self ) ;
10
10
}
11
11
12
- impl < ' s > Slice < ' s > for String {
12
+ impl Slice < ' _ > for String {
13
13
fn slice ( & self , range : Range < usize > ) -> Self {
14
14
self [ range] . to_string ( )
15
15
}
You can’t perform that action at this time.
0 commit comments