From f1c186f6f8db489a5edc46f8783c463257ffe8f6 Mon Sep 17 00:00:00 2001 From: Firas Ghanmi Date: Mon, 30 Sep 2024 11:16:04 +0200 Subject: [PATCH] cargo fmt --- tough/src/sign.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tough/src/sign.rs b/tough/src/sign.rs index 6cc40d2a..323271a7 100644 --- a/tough/src/sign.rs +++ b/tough/src/sign.rs @@ -1,4 +1,3 @@ - // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT OR Apache-2.0 @@ -201,9 +200,10 @@ pub fn parse_keypair(key: &[u8], password: Option<&str>) -> Result { if let Ok(ed25519_key_pair) = Ed25519KeyPair::from_pkcs8(decrypted_key_slice) { Ok(SignKeyPair::ED25519(ed25519_key_pair)) - } else if let Ok(ecdsa_key_pair) = - EcdsaKeyPair::from_pkcs8(&aws_lc_rs::signature::ECDSA_P256_SHA256_ASN1_SIGNING, decrypted_key_slice) - { + } else if let Ok(ecdsa_key_pair) = EcdsaKeyPair::from_pkcs8( + &aws_lc_rs::signature::ECDSA_P256_SHA256_ASN1_SIGNING, + decrypted_key_slice, + ) { Ok(SignKeyPair::ECDSA(ecdsa_key_pair)) } else if let Ok(pem) = pem::parse(decrypted_key_slice) { match pem.tag() {