1
1
macro_rules! impl_partial_eq {
2
2
( $lhs: ty, $rhs: ty) => {
3
- impl <' a, ' b > PartialEq <$rhs> for $lhs {
3
+ impl <' a> PartialEq <$rhs> for $lhs {
4
4
#[ inline]
5
5
fn eq( & self , other: & $rhs) -> bool {
6
6
let other: & [ u8 ] = other. as_ref( ) ;
7
7
PartialEq :: eq( self . as_bytes( ) , other)
8
8
}
9
9
}
10
10
11
- impl <' a, ' b > PartialEq <$lhs> for $rhs {
11
+ impl <' a> PartialEq <$lhs> for $rhs {
12
12
#[ inline]
13
13
fn eq( & self , other: & $lhs) -> bool {
14
14
let this: & [ u8 ] = self . as_ref( ) ;
@@ -20,15 +20,15 @@ macro_rules! impl_partial_eq {
20
20
21
21
macro_rules! impl_partial_eq_n {
22
22
( $lhs: ty, $rhs: ty) => {
23
- impl <' a, ' b , const N : usize > PartialEq <$rhs> for $lhs {
23
+ impl <' a, const N : usize > PartialEq <$rhs> for $lhs {
24
24
#[ inline]
25
25
fn eq( & self , other: & $rhs) -> bool {
26
26
let other: & [ u8 ] = other. as_ref( ) ;
27
27
PartialEq :: eq( self . as_bytes( ) , other)
28
28
}
29
29
}
30
30
31
- impl <' a, ' b , const N : usize > PartialEq <$lhs> for $rhs {
31
+ impl <' a, const N : usize > PartialEq <$lhs> for $rhs {
32
32
#[ inline]
33
33
fn eq( & self , other: & $lhs) -> bool {
34
34
let this: & [ u8 ] = self . as_ref( ) ;
@@ -41,15 +41,15 @@ macro_rules! impl_partial_eq_n {
41
41
#[ cfg( feature = "alloc" ) ]
42
42
macro_rules! impl_partial_eq_cow {
43
43
( $lhs: ty, $rhs: ty) => {
44
- impl <' a, ' b > PartialEq <$rhs> for $lhs {
44
+ impl <' a> PartialEq <$rhs> for $lhs {
45
45
#[ inline]
46
46
fn eq( & self , other: & $rhs) -> bool {
47
47
let other: & [ u8 ] = ( & * * other) . as_ref( ) ;
48
48
PartialEq :: eq( self . as_bytes( ) , other)
49
49
}
50
50
}
51
51
52
- impl <' a, ' b > PartialEq <$lhs> for $rhs {
52
+ impl <' a> PartialEq <$lhs> for $rhs {
53
53
#[ inline]
54
54
fn eq( & self , other: & $lhs) -> bool {
55
55
let this: & [ u8 ] = ( & * * other) . as_ref( ) ;
@@ -61,15 +61,15 @@ macro_rules! impl_partial_eq_cow {
61
61
62
62
macro_rules! impl_partial_ord {
63
63
( $lhs: ty, $rhs: ty) => {
64
- impl <' a, ' b > PartialOrd <$rhs> for $lhs {
64
+ impl <' a> PartialOrd <$rhs> for $lhs {
65
65
#[ inline]
66
66
fn partial_cmp( & self , other: & $rhs) -> Option <Ordering > {
67
67
let other: & [ u8 ] = other. as_ref( ) ;
68
68
PartialOrd :: partial_cmp( self . as_bytes( ) , other)
69
69
}
70
70
}
71
71
72
- impl <' a, ' b > PartialOrd <$lhs> for $rhs {
72
+ impl <' a> PartialOrd <$lhs> for $rhs {
73
73
#[ inline]
74
74
fn partial_cmp( & self , other: & $lhs) -> Option <Ordering > {
75
75
let this: & [ u8 ] = self . as_ref( ) ;
@@ -81,15 +81,15 @@ macro_rules! impl_partial_ord {
81
81
82
82
macro_rules! impl_partial_ord_n {
83
83
( $lhs: ty, $rhs: ty) => {
84
- impl <' a, ' b , const N : usize > PartialOrd <$rhs> for $lhs {
84
+ impl <' a, const N : usize > PartialOrd <$rhs> for $lhs {
85
85
#[ inline]
86
86
fn partial_cmp( & self , other: & $rhs) -> Option <Ordering > {
87
87
let other: & [ u8 ] = other. as_ref( ) ;
88
88
PartialOrd :: partial_cmp( self . as_bytes( ) , other)
89
89
}
90
90
}
91
91
92
- impl <' a, ' b , const N : usize > PartialOrd <$lhs> for $rhs {
92
+ impl <' a, const N : usize > PartialOrd <$lhs> for $rhs {
93
93
#[ inline]
94
94
fn partial_cmp( & self , other: & $lhs) -> Option <Ordering > {
95
95
let this: & [ u8 ] = self . as_ref( ) ;
0 commit comments