Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Dec 11, 2024
1 parent 9bb49c7 commit 7766ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autonomi/src/client/quote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl QuoteForAddress {
}

/// A quote for many addresses
pub struct StoreQuote(pub(crate) HashMap<XorName, QuoteForAddress>);
pub struct StoreQuote(pub HashMap<XorName, QuoteForAddress>);

impl StoreQuote {
pub fn price(&self) -> Amount {
Expand Down
5 changes: 3 additions & 2 deletions autonomi/tests/external_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use ant_evm::{QuoteHash, TxHash};
use ant_logging::LogBuilder;
use autonomi::client::external_signer::encrypt_data;
use autonomi::client::files::archive::{Metadata, PrivateArchive};
use autonomi::client::payment::Receipt;
use autonomi::client::payment::{receipt_from_store_quotes, Receipt};
use autonomi::client::quote::StoreQuote;
use autonomi::client::vault::user_data::USER_DATA_VAULT_CONTENT_IDENTIFIER;
use autonomi::client::vault::VaultSecretKey;
use autonomi::{Client, Wallet};
Expand Down Expand Up @@ -93,7 +94,7 @@ async fn pay_for_content_addresses(
}

// Payment proofs
Ok(receipt_from_store_quotes_and_payments(&quotes, payments))
Ok(receipt_from_store_quotes(StoreQuote(quotes)))
}

// Example of how put would be done using external signers.
Expand Down

0 comments on commit 7766ff0

Please sign in to comment.