Skip to content

Commit 732ca0f

Browse files
committed
Simplify module declarations
1 parent 08a6c41 commit 732ca0f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/imp/openssl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use std::io;
1515
use std::sync::LazyLock;
1616

1717
use crate::{Protocol, TlsAcceptorBuilder, TlsConnectorBuilder};
18+
use log::debug;
1819

1920
static PROBE_RESULT: LazyLock<ProbeResult> = LazyLock::new(openssl_probe::probe);
2021

src/lib.rs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,12 @@ use std::fmt;
103103
use std::io;
104104
use std::result;
105105

106-
#[cfg(not(any(target_os = "windows", target_vendor = "apple")))]
107-
#[macro_use]
108-
extern crate log;
109-
#[cfg(target_vendor = "apple")]
110-
#[path = "imp/security_framework.rs"]
111-
mod imp;
112-
#[cfg(target_os = "windows")]
113-
#[path = "imp/schannel.rs"]
114-
mod imp;
115-
#[cfg(not(any(target_vendor = "apple", target_os = "windows")))]
116-
#[path = "imp/openssl.rs"]
106+
#[cfg_attr(target_vendor = "apple", path = "imp/security_framework.rs")]
107+
#[cfg_attr(target_os = "windows", path = "imp/schannel.rs")]
108+
#[cfg_attr(
109+
not(any(target_vendor = "apple", target_os = "windows")),
110+
path = "imp/openssl.rs"
111+
)]
117112
mod imp;
118113

119114
#[cfg(test)]

0 commit comments

Comments
 (0)