From 7f761df3e7b72ce75be21ab9b3a533d0a5a938a5 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 12 Dec 2025 06:07:51 -0100 Subject: fix compilation errors with some feature combinations --- azalea-protocol/src/connect.rs | 1 + azalea-protocol/src/lib.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index fd599ff8..85fc643e 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -299,6 +299,7 @@ impl Display for Proxy { } } +#[cfg(feature = "online-mode")] impl From for reqwest::Proxy { fn from(proxy: Proxy) -> Self { reqwest::Proxy::all(proxy.to_string()) diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index b5c0fd1e..b481afb8 100644 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -21,7 +21,6 @@ use std::{ pub mod common; #[cfg(feature = "connecting")] pub mod connect; -#[cfg(feature = "packets")] pub mod packets; pub mod read; pub mod resolve; -- cgit v1.2.3