agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

commit e3154aeb4dcf2509c2b45e8e2c3c01da1660c54e
parent 2abb15da7a5dd7496438fca250a6af9ac9c0704f
Author: w1kee <31793948+w1kee@users.noreply.github.com>
Date:   Fri,  7 Jul 2023 15:49:42 +0200

simplify config_attr condition

target_os = "windows" -> windows

Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
Diffstat:
Msrc/main.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs @@ -159,7 +159,8 @@ static ARGS: Lazy<Args> = Lazy::new(|| { struct Args { addrs: Vec<SocketAddr>, - #[cfg_attr(target_os = "windows", allow(dead_code))] // only used on unix, so dead code on windows + // only used on unix, so dead code on windows + #[cfg_attr(windows, allow(dead_code))] sockets: Vec<PathBuf>, content_dir: PathBuf, certs: Arc<certificates::CertStore>,