Skip to content

Commit 168aebe

Browse files
committed
fmt
1 parent 99f1b2a commit 168aebe

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

sqlx-core/src/mssql/connection/establish.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ impl MssqlConnection {
1818
// TODO: Encryption
1919
// TODO: Send the version of SQLx over
2020

21-
log::debug!("Sending T-SQL PRELOGIN with encryption: {:?}", options.encrypt);
21+
log::debug!(
22+
"Sending T-SQL PRELOGIN with encryption: {:?}",
23+
options.encrypt
24+
);
2225

2326
stream
2427
.write_packet_and_flush(

sqlx-core/src/mssql/connection/stream.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ impl MssqlStream {
245245
pub(crate) async fn setup_encryption(&mut self) -> Result<(), Error> {
246246
let tls_config = TlsConfig {
247247
accept_invalid_certs: self.options.trust_server_certificate,
248-
hostname: self.options.hostname_in_certificate.as_deref().unwrap_or(&self.options.host),
248+
hostname: self
249+
.options
250+
.hostname_in_certificate
251+
.as_deref()
252+
.unwrap_or(&self.options.host),
249253
accept_invalid_hostnames: self.options.hostname_in_certificate.is_none(),
250254
root_cert_path: self.options.ssl_root_cert.as_ref(),
251255
client_cert_path: None,

sqlx-core/src/mssql/options/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::Path;
22

3-
use crate::{connection::LogSettings, net::CertificateInput};
43
use super::protocol::pre_login::Encrypt;
4+
use crate::{connection::LogSettings, net::CertificateInput};
55

66
mod connect;
77
mod parse;

0 commit comments

Comments
 (0)