Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Dec 31, 2023
1 parent 48e0f75 commit feb70d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
11 changes: 4 additions & 7 deletions src/api/endpoints/assets.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use crate::*;
use blockfrost_openapi::models::{
asset_addresses_inner::AssetAddressesInner, asset_history_inner::AssetHistoryInner,
asset_policy_inner::AssetPolicyInner, asset_transactions_inner::AssetTransactionsInner,
asset::Asset,
assets_inner::AssetsInner,
asset::Asset, asset_addresses_inner::AssetAddressesInner,
asset_history_inner::AssetHistoryInner, asset_policy_inner::AssetPolicyInner,
asset_transactions_inner::AssetTransactionsInner, assets_inner::AssetsInner,
};

impl BlockfrostAPI {
Expand Down Expand Up @@ -52,9 +51,7 @@ impl BlockfrostAPI {
mod tests {
use super::*;
use blockfrost_openapi::models::{
asset::Asset,
asset_transactions_inner::AssetTransactionsInner,
assets_inner::AssetsInner,
asset::Asset, asset_transactions_inner::AssetTransactionsInner, assets_inner::AssetsInner,
};
use serde_json::json;

Expand Down
10 changes: 3 additions & 7 deletions src/api/endpoints/transactions.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use crate::{request::send_request, url::Url, *};
use blockfrost_openapi::models::{
tx_content::TxContent,
tx_content_utxo::TxContentUtxo,
tx_content_delegations_inner::TxContentDelegationsInner,
tx_content::TxContent, tx_content_delegations_inner::TxContentDelegationsInner,
tx_content_metadata_cbor_inner::TxContentMetadataCborInner,
tx_content_metadata_inner::TxContentMetadataInner, tx_content_mirs_inner::TxContentMirsInner,
tx_content_pool_retires_inner::TxContentPoolRetiresInner,
tx_content_redeemers_inner::TxContentRedeemersInner,
tx_content_stake_addr_inner::TxContentStakeAddrInner,
tx_content_stake_addr_inner::TxContentStakeAddrInner, tx_content_utxo::TxContentUtxo,
tx_content_withdrawals_inner::TxContentWithdrawalsInner,
};
use reqwest::{header::HeaderValue, Body, Method};
Expand Down Expand Up @@ -43,9 +41,7 @@ impl BlockfrostAPI {
json_from(&text).map_err(|reason| json_error(url, text, reason))
}

pub async fn transaction_by_hash(
&self, hash: &str,
) -> BlockfrostResult<TxContent> {
pub async fn transaction_by_hash(&self, hash: &str) -> BlockfrostResult<TxContent> {
self.call_endpoint(format!("/txs/{}", hash).as_str()).await
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pub mod types;
pub use api::*;
pub use error::*;
pub use ipfs::BlockfrostIPFS;
pub use pagination::Pagination;
pub use pagination::Order;
pub use pagination::Pagination;
pub use settings::*;
pub use types::*;

Expand Down

0 comments on commit feb70d4

Please sign in to comment.