File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1006,7 +1006,7 @@ macro_rules! impl_formatting {
1006
1006
( $fmt_trait: ident, $prefix: expr, $fmt_str: expr, $fmt_alt: expr) => {
1007
1007
impl <T : $fmt_trait + Clone + Integer > $fmt_trait for Ratio <T > {
1008
1008
#[ cfg( feature = "std" ) ]
1009
- fn fmt( & self , f: & mut Formatter ) -> fmt:: Result {
1009
+ fn fmt( & self , f: & mut Formatter < ' _> ) -> fmt:: Result {
1010
1010
let pre_pad = if self . denom. is_one( ) {
1011
1011
format!( $fmt_str, self . numer)
1012
1012
} else {
@@ -1027,7 +1027,7 @@ macro_rules! impl_formatting {
1027
1027
f. pad_integral( non_negative, $prefix, pre_pad)
1028
1028
}
1029
1029
#[ cfg( not( feature = "std" ) ) ]
1030
- fn fmt( & self , f: & mut Formatter ) -> fmt:: Result {
1030
+ fn fmt( & self , f: & mut Formatter < ' _> ) -> fmt:: Result {
1031
1031
let plus = if f. sign_plus( ) && self . numer >= T :: zero( ) {
1032
1032
"+"
1033
1033
} else {
You can’t perform that action at this time.
0 commit comments