File tree 4 files changed +32
-7
lines changed
4 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,11 @@ where
153
153
T : PlaceholderValueProvider < K > + ?Sized ,
154
154
{
155
155
type Error = T :: Error ;
156
- type W < ' a > = T :: W < ' a > where T : ' a , ' b : ' a ;
156
+ type W < ' a >
157
+ = T :: W < ' a >
158
+ where
159
+ T : ' a ,
160
+ ' b : ' a ;
157
161
const LITERAL_PART : Part = T :: LITERAL_PART ;
158
162
fn value_for ( & self , key : K ) -> ( Self :: W < ' _ > , Part ) {
159
163
( * self ) . value_for ( key)
Original file line number Diff line number Diff line change 72
72
W1 : Writeable ,
73
73
{
74
74
type Error = Infallible ;
75
- type W < ' a > = WriteableAsTryWriteableInfallible < Either < & ' a W0 , & ' a W1 > > where W0 : ' a , W1 : ' a ;
75
+ type W < ' a >
76
+ = WriteableAsTryWriteableInfallible < Either < & ' a W0 , & ' a W1 > >
77
+ where
78
+ W0 : ' a ,
79
+ W1 : ' a ;
76
80
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
77
81
#[ inline]
78
82
fn value_for ( & self , key : DoublePlaceholderKey ) -> ( Self :: W < ' _ > , writeable:: Part ) {
92
96
W : Writeable ,
93
97
{
94
98
type Error = Infallible ;
95
- type W < ' a > = WriteableAsTryWriteableInfallible < & ' a W > where W : ' a ;
99
+ type W < ' a >
100
+ = WriteableAsTryWriteableInfallible < & ' a W >
101
+ where
102
+ W : ' a ;
96
103
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
97
104
#[ inline]
98
105
fn value_for ( & self , key : DoublePlaceholderKey ) -> ( Self :: W < ' _ > , writeable:: Part ) {
Original file line number Diff line number Diff line change 93
93
W : Writeable ,
94
94
{
95
95
type Error = MissingNamedPlaceholderError < ' k > ;
96
- type W < ' a > = Result < & ' a W , Self :: Error > where W : ' a , Self : ' a ;
96
+ type W < ' a >
97
+ = Result < & ' a W , Self :: Error >
98
+ where
99
+ W : ' a ,
100
+ Self : ' a ;
97
101
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
98
102
#[ inline]
99
103
fn value_for < ' a > (
@@ -116,7 +120,11 @@ where
116
120
S : litemap:: store:: Store < K , W > ,
117
121
{
118
122
type Error = MissingNamedPlaceholderError < ' k > ;
119
- type W < ' a > = Result < & ' a W , Self :: Error > where W : ' a , Self : ' a ;
123
+ type W < ' a >
124
+ = Result < & ' a W , Self :: Error >
125
+ where
126
+ W : ' a ,
127
+ Self : ' a ;
120
128
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
121
129
#[ inline]
122
130
fn value_for < ' a > (
Original file line number Diff line number Diff line change 61
61
W : Writeable ,
62
62
{
63
63
type Error = Infallible ;
64
- type W < ' a > = WriteableAsTryWriteableInfallible < & ' a W > where W : ' a ;
64
+ type W < ' a >
65
+ = WriteableAsTryWriteableInfallible < & ' a W >
66
+ where
67
+ W : ' a ;
65
68
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
66
69
fn value_for ( & self , _key : SinglePlaceholderKey ) -> ( Self :: W < ' _ > , writeable:: Part ) {
67
70
(
76
79
W : Writeable ,
77
80
{
78
81
type Error = Infallible ;
79
- type W < ' a > = WriteableAsTryWriteableInfallible < & ' a W > where W : ' a ;
82
+ type W < ' a >
83
+ = WriteableAsTryWriteableInfallible < & ' a W >
84
+ where
85
+ W : ' a ;
80
86
const LITERAL_PART : writeable:: Part = crate :: PATTERN_LITERAL_PART ;
81
87
fn value_for ( & self , _key : SinglePlaceholderKey ) -> ( Self :: W < ' _ > , writeable:: Part ) {
82
88
let [ value] = self ;
You can’t perform that action at this time.
0 commit comments