Skip to content

Commit 25dc5ee

Browse files
committed
fix rust 1.94 ambiguous panic macro warnings
``` error: `panic` is ambiguous --> src/./alg_tests.rs:699:26 | 699 | unhandled => panic!("extend der2text for tag 0x{unhandled:x?}"), | ^^^^^ ambiguous name | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #147319 <rust-lang/rust#147319> = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution ```
1 parent e459078 commit 25dc5ee

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/alg_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#![allow(clippy::duplicate_mod)]
1616

17+
use std::panic;
1718
use std::prelude::v1::*;
1819

1920
use base64::{Engine as _, engine::general_purpose};

src/cert.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ mod tests {
424424
use super::*;
425425
#[cfg(feature = "alloc")]
426426
use crate::crl::RevocationReason;
427+
use std::panic;
427428
use std::prelude::v1::*;
428429

429430
#[test]

src/crl/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ mod tests {
944944

945945
use pki_types::CertificateDer;
946946
use std::prelude::v1::*;
947-
use std::println;
947+
use std::{panic, println};
948948

949949
use super::*;
950950
use crate::cert::Cert;

0 commit comments

Comments
 (0)