Skip to content

Commit

Permalink
Fix unused variable warnings in migrate.rs with feature = "mssql"
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Oct 14, 2020
1 parent fa7981f commit 35e2278
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions sqlx-core/src/any/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.ensure_migrations_table(),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => unimplemented!(),
}
}

Expand All @@ -92,7 +92,7 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.version(),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => unimplemented!(),
}
}

Expand All @@ -108,7 +108,7 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.lock(),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => unimplemented!(),
}
}

Expand All @@ -124,7 +124,7 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.unlock(),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => unimplemented!(),
}
}

Expand All @@ -143,7 +143,10 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.validate(migration),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => {
let _ = migration;
unimplemented!()
}
}
}

Expand All @@ -162,7 +165,10 @@ impl Migrate for AnyConnection {
AnyConnectionKind::MySql(conn) => conn.apply(migration),

#[cfg(feature = "mssql")]
AnyConnectionKind::Mssql(conn) => unimplemented!(),
AnyConnectionKind::Mssql(_conn) => {
let _ = migration;
unimplemented!()
}
}
}
}

0 comments on commit 35e2278

Please sign in to comment.