Skip to content

Commit

Permalink
clippy: fix needless borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
OverOrion committed Mar 13, 2023
1 parent 3c184f4 commit 74c7597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/attesteer/commands/send_dcap_quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct SendDCAPQuoteCmd {

impl SendDCAPQuoteCmd {
pub fn run(&self, cli: &Cli) {
let direct_api = get_worker_api_direct(&cli);
let direct_api = get_worker_api_direct(cli);
let hex_encoded_quote = read_to_string(&self.quote)
.map_err(|e| error!("Opening hex encoded DCAP quote file failed: {:#?}", e))
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion cli/src/attesteer/commands/send_ias_attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct SendIASAttestationReportCmd {

impl SendIASAttestationReportCmd {
pub fn run(&self, cli: &Cli) {
let direct_api = get_worker_api_direct(&cli);
let direct_api = get_worker_api_direct(cli);
let hex_encoded_report = read_to_string(&self.report)
.map_err(|e| error!("Opening hex encoded IAS attestation report file failed: {:#?}", e))
.unwrap();
Expand Down

0 comments on commit 74c7597

Please sign in to comment.