From b226edc3bcc6fad95924262b7d1006e3e9bf6111 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sun, 26 Jan 2025 20:03:46 -0700 Subject: [PATCH] Only JSON error if feature dep --- idevice/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index 441c4d9..58fe5d2 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -188,8 +188,11 @@ pub enum IdeviceError { CdtunnelPacketInvalidMagic, #[error("Proclaimed packet size does not match actual size")] PacketSizeMismatch, + + #[cfg(feature = "core_device_proxy")] #[error("JSON serialization failed")] Json(#[from] serde_json::Error), + #[error("unknown error `{0}` returned from device")] UnknownErrorType(String), }