Skip to content

Commit dcbd91f

Browse files
committed
Removed unnecessary lifetimes
1 parent 39991ac commit dcbd91f

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

src/alter_table.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ pub enum AlterTableImpl<'until_build, 'post_build> {
8080
Postgres(AlterTableData<'until_build, 'post_build>),
8181
}
8282

83-
impl<'until_build, 'post_build> AlterTable<'post_build>
84-
for AlterTableImpl<'until_build, 'post_build>
85-
{
83+
impl<'post_build> AlterTable<'post_build> for AlterTableImpl<'_, 'post_build> {
8684
fn build(self) -> Result<Vec<(String, Vec<Value<'post_build>>)>, Error> {
8785
match self {
8886
#[cfg(feature = "sqlite")]

src/create_column.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ pub enum CreateColumnImpl<'until_build, 'post_build> {
101101
Postgres(CreateColumnPostgresData<'until_build, 'post_build>),
102102
}
103103

104-
impl<'until_build, 'post_build> CreateColumn<'post_build>
105-
for CreateColumnImpl<'until_build, 'post_build>
106-
{
104+
impl<'post_build> CreateColumn<'post_build> for CreateColumnImpl<'_, 'post_build> {
107105
fn build(self, s: &mut String) -> Result<(), Error> {
108106
match self {
109107
#[cfg(feature = "sqlite")]

src/drop_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub enum DropTableImpl<'until_build> {
4646
Postgres(DropTableData<'until_build>),
4747
}
4848

49-
impl<'until_build> DropTable for DropTableImpl<'until_build> {
49+
impl DropTable for DropTableImpl<'_> {
5050
fn if_exists(mut self) -> Self {
5151
match self {
5252
#[cfg(feature = "sqlite")]

src/insert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub enum InsertImpl<'until_build, 'post_build> {
6969
Postgres(InsertData<'until_build, 'post_build>),
7070
}
7171

72-
impl<'until_build, 'post_build> Insert<'post_build> for InsertImpl<'until_build, 'post_build> {
72+
impl<'post_build> Insert<'post_build> for InsertImpl<'_, 'post_build> {
7373
fn rollback_transaction(mut self) -> Self {
7474
match self {
7575
#[cfg(feature = "sqlite")]

src/join_table.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ pub enum JoinTableImpl<'until_build, 'post_query> {
106106
Postgres(JoinTableData<'until_build, 'post_query>),
107107
}
108108

109-
impl<'until_build, 'post_query> JoinTable<'post_query>
110-
for JoinTableImpl<'until_build, 'post_query>
111-
{
109+
impl<'post_query> JoinTable<'post_query> for JoinTableImpl<'_, 'post_query> {
112110
fn build(&self, s: &mut String, lookup: &mut Vec<Value<'post_query>>) {
113111
match self {
114112
#[cfg(feature = "sqlite")]

src/select_column.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub enum SelectColumnImpl<'until_build> {
4747
Postgres(SelectColumnData<'until_build>),
4848
}
4949

50-
impl<'until_build> SelectColumn for SelectColumnImpl<'until_build> {
50+
impl SelectColumn for SelectColumnImpl<'_> {
5151
fn build(&self, s: &mut String) {
5252
match self {
5353
#[cfg(feature = "sqlite")]

0 commit comments

Comments
 (0)