diff --git a/openssl/src/x509/tests.rs b/openssl/src/x509/tests.rs index 509dde6b..c97c4673 100644 --- a/openssl/src/x509/tests.rs +++ b/openssl/src/x509/tests.rs @@ -988,7 +988,11 @@ fn test_verify_param_set_depth_fails_verification() { store_bldr.add_cert(ca).unwrap(); let mut verify_params = X509VerifyParam::new().unwrap(); // OpenSSL 1.1.0+ considers the root certificate to not be part of the chain, while 1.0.2 and LibreSSL do - let expected_depth = if cfg!(any(ossl110, bssl_google)) { 0 } else { 1 }; + let expected_depth = if cfg!(any(ossl110, bssl_google)) { + 0 + } else { + 1 + }; verify_params.set_depth(expected_depth); store_bldr.set_param(&verify_params).unwrap(); let store = store_bldr.build();