Skip to content

Commit dad6aab

Browse files
committed
Fix lifetime parameter shadowing on rust master
1 parent 1501f0e commit dad6aab

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,20 +1799,20 @@ impl GenericConnection for Connection {
17991799
}
18001800

18011801
impl<'a> GenericConnection for Transaction<'a> {
1802-
fn prepare<'a>(&'a self, query: &str) -> Result<Statement<'a>> {
1802+
fn prepare<'b>(&'b self, query: &str) -> Result<Statement<'b>> {
18031803
self.prepare(query)
18041804
}
18051805

18061806
fn execute(&self, query: &str, params: &[&ToSql]) -> Result<uint> {
18071807
self.execute(query, params)
18081808
}
18091809

1810-
fn transaction<'a>(&'a self) -> Result<Transaction<'a>> {
1810+
fn transaction<'b>(&'b self) -> Result<Transaction<'b>> {
18111811
self.transaction()
18121812
}
18131813

1814-
fn prepare_copy_in<'a>(&'a self, table: &str, columns: &[&str])
1815-
-> Result<CopyInStatement<'a>> {
1814+
fn prepare_copy_in<'b>(&'b self, table: &str, columns: &[&str])
1815+
-> Result<CopyInStatement<'b>> {
18161816
self.prepare_copy_in(table, columns)
18171817
}
18181818

0 commit comments

Comments
 (0)