From 28fe2d21dc03b96baa61c3b142baff3af5b92a76 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 5 Jan 2026 12:28:37 -1245 Subject: fix compilation with online-mode feature disabled --- azalea-client/src/account/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea-client/src/account/mod.rs b/azalea-client/src/account/mod.rs index 22a099d1..a6615ad7 100644 --- a/azalea-client/src/account/mod.rs +++ b/azalea-client/src/account/mod.rs @@ -83,7 +83,7 @@ pub trait AccountTrait: Send + Sync + Debug { /// /// The `online-mode` feature is disabled, so this won't do anything. #[cfg(not(feature = "online-mode"))] - fn refresh(&self) -> BoxFuture> { + fn refresh(&self) -> BoxFuture<'_, Result<(), ()>> { Box::pin(async { Ok(()) }) } @@ -132,8 +132,8 @@ pub trait AccountTrait: Send + Sync + Debug { public_key: &[u8], private_key: &[u8; 16], server_id: &str, - proxy: Option, - ) -> BoxFuture> { + proxy: Option<()>, + ) -> BoxFuture<'_, Result<(), ()>> { let _ = (public_key, private_key, server_id, proxy); Box::pin(async { Ok(()) }) } -- cgit v1.2.3