Skip to content

Commit 17f86bb

Browse files
Rename format_array_v2 to format_array
1 parent 3aa8abe commit 17f86bb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/arrayformat.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ use crate::dimension::IntoDimension;
1717

1818
const PRINT_ELEMENTS_LIMIT: Ix = 3;
1919

20-
fn format_array_v2<A, S, D, F>(view: &ArrayBase<S, D>,
21-
f: &mut fmt::Formatter,
22-
mut format: F,
23-
limit: Ix) -> fmt::Result
20+
fn format_array<A, S, D, F>(view: &ArrayBase<S, D>,
21+
f: &mut fmt::Formatter,
22+
mut format: F,
23+
limit: Ix) -> fmt::Result
2424
where F: FnMut(&A, &mut fmt::Formatter) -> fmt::Result,
2525
D: Dimension,
2626
S: Data<Elem=A>,
@@ -151,7 +151,7 @@ impl<'a, A: fmt::Display, S, D: Dimension> fmt::Display for ArrayBase<S, D>
151151
where S: Data<Elem=A>,
152152
{
153153
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
154-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
154+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
155155
}
156156
}
157157

@@ -164,7 +164,7 @@ impl<'a, A: fmt::Debug, S, D: Dimension> fmt::Debug for ArrayBase<S, D>
164164
{
165165
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
166166
// Add extra information for Debug
167-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)?;
167+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)?;
168168
write!(f, " shape={:?}, strides={:?}, layout={:?}",
169169
self.shape(), self.strides(), layout=self.view().layout())?;
170170
match D::NDIM {
@@ -183,7 +183,7 @@ impl<'a, A: fmt::LowerExp, S, D: Dimension> fmt::LowerExp for ArrayBase<S, D>
183183
where S: Data<Elem=A>,
184184
{
185185
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
186-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
186+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
187187
}
188188
}
189189

@@ -195,7 +195,7 @@ impl<'a, A: fmt::UpperExp, S, D: Dimension> fmt::UpperExp for ArrayBase<S, D>
195195
where S: Data<Elem=A>,
196196
{
197197
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
198-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
198+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
199199
}
200200
}
201201
/// Format the array using `LowerHex` and apply the formatting parameters used
@@ -206,7 +206,7 @@ impl<'a, A: fmt::LowerHex, S, D: Dimension> fmt::LowerHex for ArrayBase<S, D>
206206
where S: Data<Elem=A>,
207207
{
208208
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
209-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
209+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
210210
}
211211
}
212212

@@ -218,7 +218,7 @@ impl<'a, A: fmt::Binary, S, D: Dimension> fmt::Binary for ArrayBase<S, D>
218218
where S: Data<Elem=A>,
219219
{
220220
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
221-
format_array_v2(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
221+
format_array(self, f, <_>::fmt, PRINT_ELEMENTS_LIMIT)
222222
}
223223
}
224224

0 commit comments

Comments
 (0)