veracruz-server/src/platforms/linux.rs: Indentation and formatting.
@@ -218,7 +218,6 @@ pub mod veracruz_server_linux {
"Failed to parse Veracruz policy file. Error produced: {:?}.",
e
);
-
e
})?;
@@ -319,7 +318,6 @@ pub mod veracruz_server_linux {
// Use a closure here so that we can catch any error and
// terminate the runtime manager.
- // TODO: The indent of the content of this closure is off.
let (received, runtime_manager_socket) = (|| {
// Request SIGALRM after the specified time has elapsed.
@@ -353,14 +351,12 @@ pub mod veracruz_server_linux {
"Failed to start proxy attestation process. Error received: {:?}.",
e
);
-
e
})?;
// Send a message to the runtime manager
send_message(&mut runtime_manager_socket, &RuntimeManagerRequest::Attestation(challenge, challenge_id)).map_err(|e| {
error!("Failed to send attestation message to runtime manager enclave. Error returned: {:?}.", e);
-
e
})?;
@@ -368,7 +364,6 @@ pub mod veracruz_server_linux {
let received: RuntimeManagerResponse = receive_message(&mut runtime_manager_socket).map_err(|e| {
error!("Failed to receive response to runtime manager enclave attestation message. Error received: {:?}.", e);
-
e
})?;
@@ -377,7 +372,6 @@ pub mod veracruz_server_linux {
let (token, csr) = match received {
RuntimeManagerResponse::AttestationData(token, csr) => {
info!("Response to attestation message successfully received.",);
-
(token, csr)
}
otherwise => {
@@ -407,7 +401,6 @@ pub mod veracruz_server_linux {
send_message(&mut runtime_manager_socket, &RuntimeManagerRequest::Initialize(String::from(policy_json), cert_chain)).map_err(|e| {
error!("Failed to send certificate chain message to runtime manager enclave. Error returned: {:?}.", e);
-
e
})?;
@@ -415,7 +408,6 @@ pub mod veracruz_server_linux {
let received: RuntimeManagerResponse = receive_message(&mut runtime_manager_socket).map_err(|e| {
error!("Failed to receive response to certificate chain message message from runtime manager enclave. Error returned: {:?}.", e);
-
e
})?;
