style(mysql): compile-in more code without a selected runtime

This commit is contained in:
Ryan Leckey 2021-01-08 16:42:42 -08:00
parent 16077216df
commit 2024136c9e
No known key found for this signature in database
GPG Key ID: F8AA68C235AB08C9

View File

@ -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<Rt> MySqlConnection<Rt>
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),