@@ -545,7 +545,10 @@ pub(crate) fn verify_genesis<P: AsRef<Path>>(
545545 let genesis_output_path = namespace_dir. as_ref ( ) . join ( GENESIS_OUTPUT_FILE ) ;
546546 let genesis_output = GenesisOutput :: try_from_slice (
547547 & fs:: read ( genesis_output_path) . expect ( "Failed to read genesis output file" ) ,
548- ) . expect ( "Failed to deserialize genesis output - check that qos_client and qos_core version line up" ) ;
548+ )
549+ . expect (
550+ "Failed to deserialize genesis output - check that qos_client and qos_core version line up" ,
551+ ) ;
549552
550553 let master_seed_hex = fs:: read_to_string ( & master_seed_path)
551554 . expect ( "Failed to read master seed to string" ) ;
@@ -1165,8 +1168,10 @@ pub(crate) fn get_attestation_doc<P: AsRef<Path>>(
11651168 } ) => ( document, manifest_envelope) ,
11661169 Ok ( ProtocolMsg :: LiveAttestationDocResponse {
11671170 nsm_response : _,
1168- manifest_envelope : None
1169- } ) => panic ! ( "ManifestEnvelope does not exist in enclave - likely waiting for boot instruction" ) ,
1171+ manifest_envelope : None ,
1172+ } ) => panic ! (
1173+ "ManifestEnvelope does not exist in enclave - likely waiting for boot instruction"
1174+ ) ,
11701175 r => panic ! ( "Unexpected response: {r:?}" ) ,
11711176 } ;
11721177
@@ -1387,7 +1392,9 @@ where
13871392 approvers. sort ( ) ;
13881393 let approvers = approvers. join ( "\n " ) ;
13891394
1390- let prompt = format ! ( "The following manifest set members approved:\n {approvers}\n Is this ok? (yes/no)" ) ;
1395+ let prompt = format ! (
1396+ "The following manifest set members approved:\n {approvers}\n Is this ok? (yes/no)"
1397+ ) ;
13911398
13921399 if !prompter. prompt_is_yes ( & prompt) {
13931400 return false ;
@@ -1897,15 +1904,12 @@ fn find_approvals<P: AsRef<Path>>(
18971904 boot_dir : P ,
18981905 manifest : & Manifest ,
18991906) -> Vec < Approval > {
1900- let approvals: Vec < _ > = find_file_paths ( & boot_dir)
1907+ let approvals: Vec < _ > = find_file_paths ( & boot_dir)
19011908 . iter ( )
19021909 . filter_map ( |path| {
19031910 let file_name = split_file_name ( path) ;
19041911 // Only look at files with the approval extension
1905- if file_name
1906- . last ( )
1907- . map_or ( true , |s| s. as_str ( ) != APPROVAL_EXT )
1908- {
1912+ if file_name. last ( ) . map_or ( true , |s| s. as_str ( ) != APPROVAL_EXT ) {
19091913 return None ;
19101914 } ;
19111915
@@ -1916,7 +1920,8 @@ fn find_approvals<P: AsRef<Path>>(
19161920
19171921 assert ! (
19181922 manifest. manifest_set. members. contains( & approval. member) ,
1919- "Found approval from member ({:?}) not included in the Manifest Set" , approval. member. alias
1923+ "Found approval from member ({:?}) not included in the Manifest Set" ,
1924+ approval. member. alias
19201925 ) ;
19211926
19221927 let pub_key = P256Public :: from_bytes ( & approval. member . pub_key )
@@ -2563,10 +2568,7 @@ mod tests {
25632568 ) ) ;
25642569
25652570 let output = String :: from_utf8 ( vec_out) . unwrap ( ) ;
2566- assert_eq ! (
2567- & output,
2568- "Is this the correct namespace name: test-namespace? (yes/no)\n "
2569- ) ;
2571+ assert_eq ! ( & output, "Is this the correct namespace name: test-namespace? (yes/no)\n " ) ;
25702572 }
25712573
25722574 #[ test]
@@ -2815,7 +2817,10 @@ mod tests {
28152817
28162818 let output = String :: from_utf8 ( vec_out) . unwrap ( ) ;
28172819 let output: Vec < _ > = output. trim ( ) . split ( '\n' ) . collect ( ) ;
2818- assert_eq ! ( output. last( ) . unwrap( ) , & "Does this AWS IAM role belong to the intended organization: pr3? (yes/no)" ) ;
2820+ assert_eq ! (
2821+ output. last( ) . unwrap( ) ,
2822+ & "Does this AWS IAM role belong to the intended organization: pr3? (yes/no)"
2823+ ) ;
28192824 }
28202825
28212826 #[ test]
0 commit comments