We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1515b1b commit 5ae51d4Copy full SHA for 5ae51d4
1 file changed
idevice/src/lib.rs
@@ -390,7 +390,8 @@ impl Idevice {
390
pairing_file: &pairing_file::PairingFile,
391
) -> Result<(), IdeviceError> {
392
if CryptoProvider::get_default().is_none() {
393
- let crypto_provider = {
+ // rust-analyzer will choke on this block, don't worry about it
394
+ let crypto_provider: CryptoProvider = {
395
#[cfg(all(feature = "ring", not(feature = "aws-lc")))]
396
{
397
debug!("Using ring crypto backend");
@@ -405,7 +406,7 @@ impl Idevice {
405
406
407
#[cfg(not(any(feature = "ring", feature = "aws-lc")))]
408
- panic!(
409
+ compile_error!(
410
"No crypto backend was selected! Specify an idevice feature for a crypto backend"
411
);
412
}
0 commit comments