@@ -13,12 +13,12 @@ const PRINT_ELEMENTS_LIMIT: Ix = 3;
13
13
14
14
fn format_1d_array < A , S , F > (
15
15
view : & ArrayBase < S , Ix1 > ,
16
- f : & mut fmt:: Formatter ,
16
+ f : & mut fmt:: Formatter < ' _ > ,
17
17
mut format : F ,
18
18
limit : Ix ,
19
19
) -> fmt:: Result
20
20
where
21
- F : FnMut ( & A , & mut fmt:: Formatter ) -> fmt:: Result ,
21
+ F : FnMut ( & A , & mut fmt:: Formatter < ' _ > ) -> fmt:: Result ,
22
22
S : Data < Elem = A > ,
23
23
{
24
24
let to_be_printed = to_be_printed ( view. len ( ) , limit) ;
@@ -62,12 +62,12 @@ fn to_be_printed(length: usize, limit: usize) -> Vec<PrintableCell> {
62
62
63
63
fn format_array < A , S , D , F > (
64
64
view : & ArrayBase < S , D > ,
65
- f : & mut fmt:: Formatter ,
65
+ f : & mut fmt:: Formatter < ' _ > ,
66
66
mut format : F ,
67
67
limit : Ix ,
68
68
) -> fmt:: Result
69
69
where
70
- F : FnMut ( & A , & mut fmt:: Formatter ) -> fmt:: Result + Clone ,
70
+ F : FnMut ( & A , & mut fmt:: Formatter < ' _ > ) -> fmt:: Result + Clone ,
71
71
D : Dimension ,
72
72
S : Data < Elem = A > ,
73
73
{
@@ -128,7 +128,7 @@ impl<'a, A: fmt::Display, S, D: Dimension> fmt::Display for ArrayBase<S, D>
128
128
where
129
129
S : Data < Elem = A > ,
130
130
{
131
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
131
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
132
132
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT )
133
133
}
134
134
}
@@ -141,7 +141,7 @@ impl<'a, A: fmt::Debug, S, D: Dimension> fmt::Debug for ArrayBase<S, D>
141
141
where
142
142
S : Data < Elem = A > ,
143
143
{
144
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
144
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
145
145
// Add extra information for Debug
146
146
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT ) ?;
147
147
write ! (
@@ -167,7 +167,7 @@ impl<'a, A: fmt::LowerExp, S, D: Dimension> fmt::LowerExp for ArrayBase<S, D>
167
167
where
168
168
S : Data < Elem = A > ,
169
169
{
170
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
170
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
171
171
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT )
172
172
}
173
173
}
@@ -180,7 +180,7 @@ impl<'a, A: fmt::UpperExp, S, D: Dimension> fmt::UpperExp for ArrayBase<S, D>
180
180
where
181
181
S : Data < Elem = A > ,
182
182
{
183
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
183
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
184
184
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT )
185
185
}
186
186
}
@@ -192,7 +192,7 @@ impl<'a, A: fmt::LowerHex, S, D: Dimension> fmt::LowerHex for ArrayBase<S, D>
192
192
where
193
193
S : Data < Elem = A > ,
194
194
{
195
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
195
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
196
196
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT )
197
197
}
198
198
}
@@ -205,7 +205,7 @@ impl<'a, A: fmt::Binary, S, D: Dimension> fmt::Binary for ArrayBase<S, D>
205
205
where
206
206
S : Data < Elem = A > ,
207
207
{
208
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
208
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
209
209
format_array ( self , f, <_ >:: fmt, PRINT_ELEMENTS_LIMIT )
210
210
}
211
211
}
0 commit comments