Skip to content

Commit f8339a6

Browse files
committed
PostgresLazyRows -> LazyRows
1 parent 34aaeaa commit f8339a6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,13 +1074,13 @@ impl<'conn> Transaction<'conn> {
10741074
stmt: &'stmt Statement,
10751075
params: &[&ToSql],
10761076
row_limit: i32)
1077-
-> Result<PostgresLazyRows<'trans, 'stmt>> {
1077+
-> Result<LazyRows<'trans, 'stmt>> {
10781078
if self.conn as *const _ != stmt.conn as *const _ {
10791079
return Err(PgWrongConnection);
10801080
}
10811081
check_desync!(self.conn);
10821082
stmt.lazy_query(row_limit, params).map(|result| {
1083-
PostgresLazyRows {
1083+
LazyRows {
10841084
_trans: self,
10851085
result: result
10861086
}
@@ -1525,21 +1525,20 @@ impl<'a> RowIndex for &'a str {
15251525
}
15261526

15271527
/// A lazily-loaded iterator over the resulting rows of a query
1528-
pub struct PostgresLazyRows<'trans, 'stmt> {
1528+
pub struct LazyRows<'trans, 'stmt> {
15291529
result: Rows<'stmt>,
15301530
_trans: &'trans Transaction<'trans>,
15311531
}
15321532

1533-
impl<'trans, 'stmt> PostgresLazyRows<'trans, 'stmt> {
1533+
impl<'trans, 'stmt> LazyRows<'trans, 'stmt> {
15341534
/// Like `Rows::finish`.
15351535
#[inline]
15361536
pub fn finish(self) -> Result<()> {
15371537
self.result.finish()
15381538
}
15391539
}
15401540

1541-
impl<'trans, 'stmt> Iterator<Result<Row<'stmt>>>
1542-
for PostgresLazyRows<'trans, 'stmt> {
1541+
impl<'trans, 'stmt> Iterator<Result<Row<'stmt>>> for LazyRows<'trans, 'stmt> {
15431542
#[inline]
15441543
fn next(&mut self) -> Option<Result<Row<'stmt>>> {
15451544
self.result.try_next()

0 commit comments

Comments
 (0)