Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Jan 17, 2024
1 parent 668c7ce commit cd5f267
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/antelope/src/api/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ impl<P: Provider> APIClient<P> {
v1_chain: ChainAPI::new(provider),
})
}
}
}
3 changes: 1 addition & 2 deletions crates/antelope/src/api/default_provider.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::fmt::{Debug, Formatter};
use crate::api::client::Provider;
use reqwest::blocking::Client;
use std::fmt::{Debug, Formatter};

#[derive(Default, Clone)]
pub struct DefaultProvider {
Expand Down Expand Up @@ -57,5 +57,4 @@ impl Provider for DefaultProvider {

Ok(res.unwrap().text().unwrap())
}

}
2 changes: 1 addition & 1 deletion crates/antelope/src/api/v1/chain.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::fmt::{Debug};
use crate::api::client::Provider;
use crate::api::v1::structs::{
ClientError, GetInfoResponse, GetTableRowsParams, GetTableRowsResponse, ProcessedTransaction,
Expand All @@ -15,6 +14,7 @@ use crate::name;
use crate::serializer::formatter::{JSONObject, ValueTo};
use crate::util::hex_to_bytes;
use serde_json::Value;
use std::fmt::Debug;

#[derive(Debug, Default, Clone)]
pub struct ChainAPI<T: Provider> {
Expand Down
3 changes: 1 addition & 2 deletions crates/antelope/tests/utils/mock_provider.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::fmt::{Debug, Formatter};
use antelope::api::client::{HTTPMethod, Provider};
use antelope::api::v1::structs::GetInfoResponse;
use antelope::chain::action::{Action, PermissionLevel};
Expand All @@ -10,6 +9,7 @@ use antelope::chain::transaction::{SignedTransaction, Transaction};
use antelope::chain::{Decoder, Encoder, Packer};
use antelope::name;
use antelope_client_macros::StructPacker;
use std::fmt::{Debug, Formatter};
use std::fs;
use std::path::PathBuf;

Expand Down Expand Up @@ -50,7 +50,6 @@ impl Provider for MockProvider {
fn get(&self, path: String) -> Result<String, String> {
self.call(HTTPMethod::GET, path, None)
}

}

pub fn make_mock_transaction(info: &GetInfoResponse, asset_to_transfer: Asset) -> Transaction {
Expand Down

0 comments on commit cd5f267

Please sign in to comment.