File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -1334,8 +1334,8 @@ impl<'conn> Transaction<'conn> {
1334
1334
pub fn transaction < ' a > ( & ' a self ) -> Result < Transaction < ' a > > {
1335
1335
let mut conn = self . conn . conn . borrow_mut ( ) ;
1336
1336
check_desync ! ( conn) ;
1337
- assert ! ( conn. trans_depth == self . depth, "`transaction` may only be called on the active \
1338
- transaction") ;
1337
+ assert ! ( conn. trans_depth == self . depth,
1338
+ "`transaction` may only be called on the active transaction") ;
1339
1339
try!( conn. quick_query ( "SAVEPOINT sp" ) ) ;
1340
1340
conn. trans_depth += 1 ;
1341
1341
Ok ( Transaction {
@@ -1723,14 +1723,6 @@ impl<'stmt> Rows<'stmt> {
1723
1723
iter : self . data . iter ( )
1724
1724
}
1725
1725
}
1726
-
1727
- /// Consumes the `Rows`, returning an iterator over its `Row`s.
1728
- pub fn into_iter ( self ) -> RowsIntoIter < ' stmt > {
1729
- RowsIntoIter {
1730
- stmt : self . stmt ,
1731
- iter : self . data . into_iter ( )
1732
- }
1733
- }
1734
1726
}
1735
1727
1736
1728
impl < ' a > IntoIterator for & ' a Rows < ' a > {
@@ -1747,7 +1739,10 @@ impl<'stmt> IntoIterator for Rows<'stmt> {
1747
1739
type IntoIter = RowsIntoIter < ' stmt > ;
1748
1740
1749
1741
fn into_iter ( self ) -> RowsIntoIter < ' stmt > {
1750
- self . into_iter ( )
1742
+ RowsIntoIter {
1743
+ stmt : self . stmt ,
1744
+ iter : self . data . into_iter ( )
1745
+ }
1751
1746
}
1752
1747
}
1753
1748
You can’t perform that action at this time.
0 commit comments