Skip to content

Commit

Permalink
suites.rs: fix nonsensical duplicated feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Mar 25, 2024
1 parent ffd933a commit 114c476
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rustls/src/suites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ pub enum ConnectionTrafficSecrets {
},
}

#[cfg(all(test, feature = "ring"))]
#[cfg(all(test, any(feature = "ring", feature = "aws_lc_rs")))]
mod tests {
use super::*;
Expand Down Expand Up @@ -281,19 +280,19 @@ mod tests {
fn test_pref_fails() {
assert!(choose_ciphersuite_preferring_client(
&[CipherSuite::TLS_NULL_WITH_NULL_NULL],
crypto::ring::ALL_CIPHER_SUITES
crate::test_provider::ALL_CIPHER_SUITES
)
.is_none());
assert!(choose_ciphersuite_preferring_server(
&[CipherSuite::TLS_NULL_WITH_NULL_NULL],
crypto::ring::ALL_CIPHER_SUITES
crate::test_provider::ALL_CIPHER_SUITES
)
.is_none());
}

#[test]
fn test_scs_is_debug() {
println!("{:?}", crypto::ring::ALL_CIPHER_SUITES);
println!("{:?}", crate::test_provider::ALL_CIPHER_SUITES);
}

#[test]
Expand Down

0 comments on commit 114c476

Please sign in to comment.