Skip to content

Commit 6b94fc2

Browse files
committed
Clean up dimension iterator
1 parent 1ab8100 commit 6b94fc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,12 +590,12 @@ impl<'a, T: ToSql> ToSql for &'a [T] {
590590
_ => panic!("expected array type"),
591591
};
592592

593-
let dimensions = [ArrayDimension {
594-
len: try!(downcast(self.len())),
595-
lower_bound: 1,
596-
}];
593+
let dimension = ArrayDimension {
594+
len: try!(downcast(self.len())),
595+
lower_bound: 1,
596+
};
597597

598-
try!(types::array_to_sql(dimensions.iter().cloned(),
598+
try!(types::array_to_sql(Some(dimension),
599599
true,
600600
member_type.oid(),
601601
self.iter(),

0 commit comments

Comments
 (0)