Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
style(rtc_data_enclave): cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport committed Jun 25, 2021
1 parent b0e8e95 commit cecd62c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
15 changes: 9 additions & 6 deletions rtc_data_enclave/src/data_upload.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
use std::prelude::v1::*;

use rand::prelude::*;
use rtc_tenclave::crypto::RtcCrypto;
use rtc_tenclave::crypto::SodaBoxCrypto as Crypto;
use rtc_tenclave::crypto::{RtcCrypto, SodaBoxCrypto as Crypto};
use rtc_tenclave::util;
use rtc_types::DataUploadError as DataError;
use rtc_types::UploadMetadata as Metadata;
use rtc_types::{CryptoError, DataUploadResponse};
use rtc_types::{
CryptoError,
DataUploadError as DataError,
DataUploadResponse,
UploadMetadata as Metadata,
};
use secrecy::{ExposeSecret, Zeroize};
use sgx_tseal::SgxSealedData;
use sgx_types::*;
use std::prelude::v1::*;
use uuid::Uuid;

pub struct SealedResult {
Expand Down
4 changes: 2 additions & 2 deletions rtc_data_enclave/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ mod data_upload;
mod ocalls;

use core::slice;
use rtc_types::*;
use sgx_types::*;
use std::prelude::v1::*;

#[allow(unused_imports)] // for ECALL linking
use rtc_tenclave::enclave::enclave_create_report;
use rtc_types::*;
use sgx_types::*;

/// Validates and save a payload encrypted for the enclave
///
Expand Down
3 changes: 2 additions & 1 deletion rtc_data_enclave/src/ocalls.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use sgx_types::*;
use std::boxed::Box;

use sgx_types::*;
use uuid::Uuid;

extern "C" {
Expand Down

0 comments on commit cecd62c

Please sign in to comment.