From 2b8ca88b8774ef57b9061b2578130d1898857907 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Wed, 17 Mar 2021 08:17:12 -0700 Subject: [PATCH] style(mysql): move simple bounds to type parameter list --- sqlx-mysql/src/connection.rs | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) 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]