Skip to content

Commit

Permalink
Workaround the clippy::redundant_feature_names errors
Browse files Browse the repository at this point in the history
  • Loading branch information
j-devel committed Oct 18, 2024
1 parent f46c434 commit 7880cd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion psa-crypto-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ mbedtls-time-workaround = []
std = ["debug"] # deprecated automatic enabling of debug, can be removed on major version bump
debug = []
custom_printf = []
custom_has_support = []
custom_has = []
aes_alt = []
threading = []
time = []
Expand Down
4 changes: 2 additions & 2 deletions psa-crypto-sys/minerva/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ pub const FEATURE_DEFINES: &[(&str, CDefine)] = &[
("custom_printf", ("MBEDTLS_PLATFORM_PRINTF_MACRO", DefinedAs("mbedtls_printf"))),
("aesni", ("MBEDTLS_AESNI_C", Defined)),
("padlock", ("MBEDTLS_PADLOCK_C", Defined)),
("custom_has_support", ("MBEDTLS_CUSTOM_HAS_AESNI", Defined)),
("custom_has_support", ("MBEDTLS_CUSTOM_HAS_PADLOCK", Defined)),
("custom_has", ("MBEDTLS_CUSTOM_HAS_AESNI", Defined)),
("custom_has", ("MBEDTLS_CUSTOM_HAS_PADLOCK", Defined)),
("legacy_protocols", ("MBEDTLS_SSL_PROTO_TLS1", Undefined)),
("legacy_protocols", ("MBEDTLS_SSL_PROTO_TLS1_1", Undefined)),
("legacy_protocols", ("MBEDTLS_SSL_CBC_RECORD_SPLITTING", Defined)),
Expand Down
2 changes: 1 addition & 1 deletion psa-crypto-sys/minerva/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lazy_static! {
impl Features {
fn init(&mut self) {
if env_have_target_cfg("env", "sgx") {
self.automatic_features.insert("custom_has_support");
self.automatic_features.insert("custom_has");
self.automatic_features.insert("aes_alt");
self.automatic_features.insert("aesni");
}
Expand Down

0 comments on commit 7880cd9

Please sign in to comment.