Skip to content

Commit 5ae51d4

Browse files
committed
Clean up rust analyzer for crypto provider block
1 parent 1515b1b commit 5ae51d4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

idevice/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ impl Idevice {
390390
pairing_file: &pairing_file::PairingFile,
391391
) -> Result<(), IdeviceError> {
392392
if CryptoProvider::get_default().is_none() {
393-
let crypto_provider = {
393+
// rust-analyzer will choke on this block, don't worry about it
394+
let crypto_provider: CryptoProvider = {
394395
#[cfg(all(feature = "ring", not(feature = "aws-lc")))]
395396
{
396397
debug!("Using ring crypto backend");
@@ -405,7 +406,7 @@ impl Idevice {
405406

406407
#[cfg(not(any(feature = "ring", feature = "aws-lc")))]
407408
{
408-
panic!(
409+
compile_error!(
409410
"No crypto backend was selected! Specify an idevice feature for a crypto backend"
410411
);
411412
}

0 commit comments

Comments
 (0)