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 {
3333
3434// This is just a helper to make it easier to convert
3535// a value provided to FluentArgs into an option value.
36- impl < ' l > From < & FluentValue < ' l > > for DateTimeStyleValue {
36+ impl From < & FluentValue < ' _ > > for DateTimeStyleValue {
3737 fn from ( input : & FluentValue ) -> Self {
3838 if let FluentValue :: String ( s) = input {
3939 match s. as_ref ( ) {
@@ -73,7 +73,7 @@ impl DateTimeOptions {
7373 }
7474}
7575
76- impl < ' l > From < & FluentArgs < ' l > > for DateTimeOptions {
76+ impl From < & FluentArgs < ' _ > > for DateTimeOptions {
7777 fn from ( input : & FluentArgs ) -> Self {
7878 let mut opts = Self :: default ( ) ;
7979 opts. merge ( input) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ pub enum FluentValue<'source> {
8484 Error ,
8585}
8686
87- impl < ' s > PartialEq for FluentValue < ' s > {
87+ impl PartialEq for FluentValue < ' _ > {
8888 fn eq ( & self , other : & Self ) -> bool {
8989 match ( self , other) {
9090 ( FluentValue :: String ( s) , FluentValue :: String ( s2) ) => s == s2,
@@ -95,7 +95,7 @@ impl<'s> PartialEq for FluentValue<'s> {
9595 }
9696}
9797
98- impl < ' s > Clone for FluentValue < ' s > {
98+ impl Clone for FluentValue < ' _ > {
9999 fn clone ( & self ) -> Self {
100100 match self {
101101 FluentValue :: String ( s) => FluentValue :: String ( s. clone ( ) ) ,
@@ -291,7 +291,7 @@ impl<'source> FluentValue<'source> {
291291 }
292292}
293293
294- impl < ' source > From < String > for FluentValue < ' source > {
294+ impl From < String > for FluentValue < ' _ > {
295295 fn from ( s : String ) -> Self {
296296 FluentValue :: String ( s. into ( ) )
297297 }
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl FromStr for FluentNumber {
175175 }
176176}
177177
178- impl < ' l > From < FluentNumber > for FluentValue < ' l > {
178+ impl From < FluentNumber > for FluentValue < ' _ > {
179179 fn from ( input : FluentNumber ) -> Self {
180180 FluentValue :: Number ( input)
181181 }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ fn fluent_date_time_builtin() {
5757 None ,
5858 }
5959
60- impl < ' l > From < & FluentValue < ' l > > for DateTimeStyleValue {
60+ impl From < & FluentValue < ' _ > > for DateTimeStyleValue {
6161 fn from ( input : & FluentValue ) -> Self {
6262 if let FluentValue :: String ( s) = input {
6363 match s. as_ref ( ) {
@@ -91,7 +91,7 @@ fn fluent_date_time_builtin() {
9191 }
9292 }
9393
94- impl < ' l > From < & FluentArgs < ' l > > for DateTimeOptions {
94+ impl From < & FluentArgs < ' _ > > for DateTimeOptions {
9595 fn from ( input : & FluentArgs ) -> Self {
9696 let mut opts = Self :: default ( ) ;
9797 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 {
99 fn trim ( & mut self ) ;
1010}
1111
12- impl < ' s > Slice < ' s > for String {
12+ impl Slice < ' _ > for String {
1313 fn slice ( & self , range : Range < usize > ) -> Self {
1414 self [ range] . to_string ( )
1515 }
You can’t perform that action at this time.
0 commit comments