From 23c8808ae74a922f9a162e9af07e9b0f254104d8 Mon Sep 17 00:00:00 2001 From: Nicholas Sharp Date: Sat, 20 Sep 2025 23:46:07 -0400 Subject: [PATCH] Include InvalidArgument with afc and installation_proxy features (#29) --- idevice/src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index fb55bc2..29f14d7 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -692,7 +692,10 @@ pub enum IdeviceError { #[error("failed to parse bytes as valid utf8")] Utf8Error = -56, - #[cfg(feature = "debug_proxy")] + #[cfg(any( + feature = "debug_proxy", + all(feature = "afc", feature = "installation_proxy") + ))] #[error("invalid argument passed")] InvalidArgument = -57, @@ -861,7 +864,10 @@ impl IdeviceError { IdeviceError::NotEnoughBytes(_, _) => -55, IdeviceError::Utf8Error => -56, - #[cfg(feature = "debug_proxy")] + #[cfg(any( + feature = "debug_proxy", + all(feature = "afc", feature = "installation_proxy") + ))] IdeviceError::InvalidArgument => -57, IdeviceError::UnknownErrorType(_) => -59,