mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 13:20:59 +00:00
style(mysql): compile-in more code without a selected runtime
This commit is contained in:
parent
16077216df
commit
2024136c9e
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user