From 5ae51d4fbb70bf3bd69ae59dcb8e6e628e15afc8 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Thu, 31 Jul 2025 12:09:54 -0600 Subject: [PATCH] Clean up rust analyzer for crypto provider block --- idevice/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index 162cb63..23affd7 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -390,7 +390,8 @@ impl Idevice { pairing_file: &pairing_file::PairingFile, ) -> Result<(), IdeviceError> { if CryptoProvider::get_default().is_none() { - let crypto_provider = { + // rust-analyzer will choke on this block, don't worry about it + let crypto_provider: CryptoProvider = { #[cfg(all(feature = "ring", not(feature = "aws-lc")))] { debug!("Using ring crypto backend"); @@ -405,7 +406,7 @@ impl Idevice { #[cfg(not(any(feature = "ring", feature = "aws-lc")))] { - panic!( + compile_error!( "No crypto backend was selected! Specify an idevice feature for a crypto backend" ); }