From ab246c5b7bba93a55ca2baa653f2467c456e822a Mon Sep 17 00:00:00 2001 From: Zhang Jingqiang Date: Mon, 19 Feb 2024 16:40:52 +0800 Subject: [PATCH] cargo fmt --- openssl/src/x509/tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();