Skip to content

Commit 0abff2a

Browse files
author
LukeMathWalker
committed
Formatting
1 parent e659390 commit 0abff2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/arrayformat.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ fn format_1d_array<A, S, F>(
2727
F: FnMut(&A, &mut fmt::Formatter) -> fmt::Result,
2828
S: Data<Elem=A>,
2929
{
30-
let n = view.len();
31-
let to_be_printed = to_be_printed(n, limit);
30+
let to_be_printed = to_be_printed(view.len(), limit);
31+
3232
let n_to_be_printed = to_be_printed.len();
3333
let is_last = |j| j == n_to_be_printed - 1;
34+
3435
write!(f, "[")?;
3536
for (j, index) in to_be_printed.into_iter().enumerate() {
3637
match index {

0 commit comments

Comments
 (0)