diff --git a/sqlx-mysql/src/connection.rs b/sqlx-mysql/src/connection.rs index e238bce9..840d7767 100644 --- a/sqlx-mysql/src/connection.rs +++ b/sqlx-mysql/src/connection.rs @@ -22,10 +22,7 @@ mod ping; /// A single connection (also known as a session) to a MySQL database server. #[allow(clippy::module_name_repetitions)] -pub struct MySqlConnection -where - Rt: Runtime, -{ +pub struct MySqlConnection { stream: MySqlStream, connection_id: u32, closed: bool, @@ -40,10 +37,7 @@ where commands: CommandQueue, } -impl MySqlConnection -where - Rt: Runtime, -{ +impl MySqlConnection { pub(crate) fn new(stream: NetStream) -> Self { Self { stream: MySqlStream::new(stream), @@ -68,19 +62,13 @@ where } } -impl Debug for MySqlConnection -where - Rt: Runtime, -{ +impl Debug for MySqlConnection { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { f.debug_struct("MySqlConnection").finish() } } -impl Connection for MySqlConnection -where - Rt: Runtime, -{ +impl Connection for MySqlConnection { type Database = MySql; #[cfg(feature = "async")] @@ -136,7 +124,7 @@ impl Close for MySqlConnection { mod blocking { use sqlx_core::blocking::{Close, Connect, Connection, Runtime}; - use super::{MySqlConnectOptions, MySqlConnection, MySql}; + use super::{MySql, MySqlConnectOptions, MySqlConnection}; impl Connection for MySqlConnection { #[inline]