From 2024136c9ec7d86fded7cd9f1086340ba37c7382 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Fri, 8 Jan 2021 16:42:42 -0800 Subject: [PATCH] style(mysql): compile-in more code without a selected runtime --- sqlx-mysql/src/connection.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sqlx-mysql/src/connection.rs b/sqlx-mysql/src/connection.rs index 5380c022..38626b48 100644 --- a/sqlx-mysql/src/connection.rs +++ b/sqlx-mysql/src/connection.rs @@ -6,10 +6,7 @@ use sqlx_core::{Connection, DefaultRuntime, Runtime}; use crate::protocol::Capabilities; use crate::{MySql, MySqlConnectOptions}; -#[cfg(any(feature = "async", feature = "blocking"))] mod connect; - -#[cfg(any(feature = "async", feature = "blocking"))] mod stream; #[allow(clippy::module_name_repetitions)] @@ -33,7 +30,6 @@ impl MySqlConnection where Rt: Runtime, { - #[cfg(any(feature = "async", feature = "blocking"))] pub(crate) fn new(stream: Rt::TcpStream) -> Self { Self { stream: BufStream::with_capacity(stream, 4096, 1024),